diff --git a/src/Factory/LoggerFactory.php b/src/Factory/LoggerFactory.php index 3658d33a5..340f5fa5c 100644 --- a/src/Factory/LoggerFactory.php +++ b/src/Factory/LoggerFactory.php @@ -44,7 +44,9 @@ class LoggerFactory public static function create($channel, Configuration $config) { if (empty($config->get('system', 'debugging', false))) { - return new VoidLogger(); + $logger = new VoidLogger(); + Logger::init($logger); + return $logger; } $introspector = new Introspection(LogLevel::DEBUG, self::$ignoreClassList);