diff --git a/symfony/monolog-bundle/3.1/config/packages/dev/monolog.php b/symfony/monolog-bundle/3.1/config/packages/dev/monolog.php deleted file mode 100644 index 1e116e72..00000000 --- a/symfony/monolog-bundle/3.1/config/packages/dev/monolog.php +++ /dev/null @@ -1,36 +0,0 @@ - [ - 'type' => 'stream', - 'path' => '%kernel.logs_dir%/%kernel.environment%.log', - 'level' => 'debug', - 'channels' => ['!event'], - ], - // uncomment to get logging in your browser - // you may have to allow bigger header sizes in your Web server configuration - //'firephp' => [ - // 'type' => 'firephp', - // 'level' => 'info', - //], - //'chromephp' => [ - // 'type' => 'chromephp', - // 'level' => 'info', - //], -]; - -$container->addResource(new ClassExistenceResource(Application::class)); -if (class_exists(Application::class)) { - $handlers['console'] = [ - 'type' => 'console', - 'process_psr_3_messages' => false, - 'channels' => ['!event', '!doctrine', '!console'], - ]; -} - -$container->loadFromExtension('monolog', [ - 'handlers' => $handlers, -]); diff --git a/symfony/monolog-bundle/3.1/config/packages/dev/monolog.yaml b/symfony/monolog-bundle/3.1/config/packages/dev/monolog.yaml new file mode 100644 index 00000000..36625928 --- /dev/null +++ b/symfony/monolog-bundle/3.1/config/packages/dev/monolog.yaml @@ -0,0 +1,19 @@ +monolog: + handlers: + main: + type: stream + path: "%kernel.logs_dir%/%kernel.environment%.log" + level: debug + channels: ["!event"] + # uncomment to get logging in your browser + # you may have to allow bigger header sizes in your Web server configuration + #firephp: + # type: firephp + # level: info + #chromephp: + # type: chromephp + # level: info + console: + type: console + process_psr_3_messages: false + channels: ["!event", "!doctrine", "!console"] diff --git a/symfony/monolog-bundle/3.1/config/packages/prod/monolog.php b/symfony/monolog-bundle/3.1/config/packages/prod/monolog.php deleted file mode 100644 index f182890c..00000000 --- a/symfony/monolog-bundle/3.1/config/packages/prod/monolog.php +++ /dev/null @@ -1,30 +0,0 @@ - [ - 'type' => 'fingers_crossed', - 'action_level' => 'error', - 'handler' => 'nested', - ], - 'nested' => [ - 'type' => 'stream', - 'path' => '%kernel.logs_dir%/%kernel.environment%.log', - 'level' => 'debug', - ], -]; - -$container->addResource(new ClassExistenceResource(Application::class)); -if (class_exists(Application::class)) { - $handlers['console'] = [ - 'type' => 'console', - 'process_psr_3_messages' => false, - 'channels' => ['!event', '!doctrine'], - ]; -} - -$container->loadFromExtension('monolog', [ - 'handlers' => $handlers, -]); diff --git a/symfony/monolog-bundle/3.1/config/packages/prod/monolog.yaml b/symfony/monolog-bundle/3.1/config/packages/prod/monolog.yaml new file mode 100644 index 00000000..07bee353 --- /dev/null +++ b/symfony/monolog-bundle/3.1/config/packages/prod/monolog.yaml @@ -0,0 +1,14 @@ +monolog: + handlers: + main: + type: fingers_crossed + action_level: error + handler: nested + nested: + type: stream + path: "%kernel.logs_dir%/%kernel.environment%.log" + level: debug + console: + type: console + process_psr_3_messages: false + channels: ["!event", "!doctrine"]