From e82533308415795d197058f6c71f079d8732a2f9 Mon Sep 17 00:00:00 2001 From: "Andrew (Andrius) Marcinkevicius" Date: Sun, 18 Jan 2015 09:35:28 +0200 Subject: [PATCH] Remove horizontal scrollbar | Q | A | ------------- | --- | Doc fix? | yes | New docs? | no | Applies to | 2.3 | Fixed tickets | --- cookbook/logging/monolog.rst | 64 +++++++++++++++++++++++++----------- 1 file changed, 45 insertions(+), 19 deletions(-) diff --git a/cookbook/logging/monolog.rst b/cookbook/logging/monolog.rst index ddd94f11b73..e50c520159d 100644 --- a/cookbook/logging/monolog.rst +++ b/cookbook/logging/monolog.rst @@ -84,8 +84,10 @@ allows you to log the messages in several ways easily. + xsi:schemaLocation="http://symfony.com/schema/dic/services + http://symfony.com/schema/dic/services/services-1.0.xsd + http://symfony.com/schema/dic/monolog + http://symfony.com/schema/dic/monolog/monolog-1.0.xsd"> + xsi:schemaLocation="http://symfony.com/schema/dic/services + http://symfony.com/schema/dic/services/services-1.0.xsd + http://symfony.com/schema/dic/monolog + http://symfony.com/schema/dic/monolog/monolog-1.0.xsd"> @@ -301,15 +305,21 @@ using a processor. + xsi:schemaLocation="http://symfony.com/schema/dic/services + http://symfony.com/schema/dic/services/services-1.0.xsd + http://symfony.com/schema/dic/monolog + http://symfony.com/schema/dic/monolog/monolog-1.0.xsd"> - + + [%%datetime%%] [%%extra.token%%] %%channel%%.%%level_name%%: %%message%% - + + @@ -330,11 +340,17 @@ using a processor. // app/config/config.php $container - ->register('monolog.formatter.session_request', 'Monolog\Formatter\LineFormatter') + ->register( + 'monolog.formatter.session_request', + 'Monolog\Formatter\LineFormatter' + ) ->addArgument('[%%datetime%%] [%%extra.token%%] %%channel%%.%%level_name%%: %%message%%\n'); $container - ->register('monolog.processor.session_request', 'Acme\MyBundle\SessionRequestProcessor') + ->register( + 'monolog.processor.session_request', + 'Acme\MyBundle\SessionRequestProcessor' + ) ->addArgument(new Reference('session')) ->addTag('monolog.processor', array('method' => 'processRecord')); @@ -383,10 +399,12 @@ the ``monolog.processor`` tag: xsi:schemaLocation="http://symfony.com/schema/dic/services http://symfony.com/schema/dic/services/services-1.0.xsd http://symfony.com/schema/dic/monolog - http://symfony.com/schema/dic/monolog/monolog-1.0.xsd" - > + http://symfony.com/schema/dic/monolog/monolog-1.0.xsd"> + - + + @@ -397,7 +415,10 @@ the ``monolog.processor`` tag: // app/config/config.php $container - ->register('monolog.processor.session_request', 'Acme\MyBundle\SessionRequestProcessor') + ->register( + 'monolog.processor.session_request', + 'Acme\MyBundle\SessionRequestProcessor' + ) ->addArgument(new Reference('session')) ->addTag('monolog.processor', array('method' => 'processRecord', 'handler' => 'main')); @@ -429,10 +450,12 @@ the ``monolog.processor`` tag: xsi:schemaLocation="http://symfony.com/schema/dic/services http://symfony.com/schema/dic/services/services-1.0.xsd http://symfony.com/schema/dic/monolog - http://symfony.com/schema/dic/monolog/monolog-1.0.xsd" - > + http://symfony.com/schema/dic/monolog/monolog-1.0.xsd"> + - + + @@ -443,7 +466,10 @@ the ``monolog.processor`` tag: // app/config/config.php $container - ->register('monolog.processor.session_request', 'Acme\MyBundle\SessionRequestProcessor') + ->register( + 'monolog.processor.session_request', + 'Acme\MyBundle\SessionRequestProcessor' + ) ->addArgument(new Reference('session')) ->addTag('monolog.processor', array('method' => 'processRecord', 'channel' => 'main'));