@@ -84,8 +84,10 @@ allows you to log the messages in several ways easily.
8484 <container xmlns =" http://symfony.com/schema/dic/services"
8585 xmlns : xsi =" http://www.w3.org/2001/XMLSchema-instance"
8686 xmlns : monolog =" http://symfony.com/schema/dic/monolog"
87- xsi : schemaLocation =" http://symfony.com/schema/dic/services http://symfony.com/schema/dic/services/services-1.0.xsd
88- http://symfony.com/schema/dic/monolog http://symfony.com/schema/dic/monolog/monolog-1.0.xsd" >
87+ xsi : schemaLocation =" http://symfony.com/schema/dic/services
88+ http://symfony.com/schema/dic/services/services-1.0.xsd
89+ http://symfony.com/schema/dic/monolog
90+ http://symfony.com/schema/dic/monolog/monolog-1.0.xsd" >
8991
9092 <monolog : config >
9193 <monolog : handler
@@ -140,7 +142,7 @@ allows you to log the messages in several ways easily.
140142 ));
141143
142144 The above configuration defines a stack of handlers which will be called
143- in the order where they are defined.
145+ in the order they are defined.
144146
145147.. tip ::
146148
@@ -185,8 +187,10 @@ easily. Your formatter must implement
185187 <container xmlns =" http://symfony.com/schema/dic/services"
186188 xmlns : xsi =" http://www.w3.org/2001/XMLSchema-instance"
187189 xmlns : monolog =" http://symfony.com/schema/dic/monolog"
188- xsi : schemaLocation =" http://symfony.com/schema/dic/services http://symfony.com/schema/dic/services/services-1.0.xsd
189- http://symfony.com/schema/dic/monolog http://symfony.com/schema/dic/monolog/monolog-1.0.xsd" >
190+ xsi : schemaLocation =" http://symfony.com/schema/dic/services
191+ http://symfony.com/schema/dic/services/services-1.0.xsd
192+ http://symfony.com/schema/dic/monolog
193+ http://symfony.com/schema/dic/monolog/monolog-1.0.xsd" >
190194
191195 <services >
192196 <service id =" my_formatter" class =" Monolog\Formatter\JsonFormatter" />
@@ -301,15 +305,21 @@ using a processor.
301305 <container xmlns =" http://symfony.com/schema/dic/services"
302306 xmlns : xsi =" http://www.w3.org/2001/XMLSchema-instance"
303307 xmlns : monolog =" http://symfony.com/schema/dic/monolog"
304- xsi : schemaLocation =" http://symfony.com/schema/dic/services http://symfony.com/schema/dic/services/services-1.0.xsd
305- http://symfony.com/schema/dic/monolog http://symfony.com/schema/dic/monolog/monolog-1.0.xsd" >
308+ xsi : schemaLocation =" http://symfony.com/schema/dic/services
309+ http://symfony.com/schema/dic/services/services-1.0.xsd
310+ http://symfony.com/schema/dic/monolog
311+ http://symfony.com/schema/dic/monolog/monolog-1.0.xsd" >
306312
307313 <services >
308- <service id =" monolog.formatter.session_request" class =" Monolog\Formatter\LineFormatter" >
314+ <service id =" monolog.formatter.session_request"
315+ class =" Monolog\Formatter\LineFormatter" >
316+
309317 <argument >[%%datetime%%] [%%extra.token%%] %%channel%%.%%level_name%%: %%message%%
 </argument >
310318 </service >
311319
312- <service id =" monolog.processor.session_request" class =" Acme\MyBundle\SessionRequestProcessor" >
320+ <service id =" monolog.processor.session_request"
321+ class =" Acme\MyBundle\SessionRequestProcessor" >
322+
313323 <argument type =" service" id =" session" />
314324 <tag name =" monolog.processor" method =" processRecord" />
315325 </service >
@@ -330,11 +340,17 @@ using a processor.
330340
331341 // app/config/config.php
332342 $container
333- ->register('monolog.formatter.session_request', 'Monolog\Formatter\LineFormatter')
343+ ->register(
344+ 'monolog.formatter.session_request',
345+ 'Monolog\Formatter\LineFormatter'
346+ )
334347 ->addArgument('[%%datetime%%] [%%extra.token%%] %%channel%%.%%level_name%%: %%message%%\n');
335348
336349 $container
337- ->register('monolog.processor.session_request', 'Acme\MyBundle\SessionRequestProcessor')
350+ ->register(
351+ 'monolog.processor.session_request',
352+ 'Acme\MyBundle\SessionRequestProcessor'
353+ )
338354 ->addArgument(new Reference('session'))
339355 ->addTag('monolog.processor', array('method' => 'processRecord'));
340356
@@ -383,10 +399,12 @@ the ``monolog.processor`` tag:
383399 xsi : schemaLocation =" http://symfony.com/schema/dic/services
384400 http://symfony.com/schema/dic/services/services-1.0.xsd
385401 http://symfony.com/schema/dic/monolog
386- http://symfony.com/schema/dic/monolog/monolog-1.0.xsd"
387- >
402+ http://symfony.com/schema/dic/monolog/monolog-1.0.xsd" >
403+
388404 <services >
389- <service id =" monolog.processor.session_request" class =" Acme\MyBundle\SessionRequestProcessor" >
405+ <service id =" monolog.processor.session_request"
406+ class =" Acme\MyBundle\SessionRequestProcessor" >
407+
390408 <argument type =" service" id =" session" />
391409 <tag name =" monolog.processor" method =" processRecord" handler =" main" />
392410 </service >
@@ -397,7 +415,10 @@ the ``monolog.processor`` tag:
397415
398416 // app/config/config.php
399417 $container
400- ->register('monolog.processor.session_request', 'Acme\MyBundle\SessionRequestProcessor')
418+ ->register(
419+ 'monolog.processor.session_request',
420+ 'Acme\MyBundle\SessionRequestProcessor'
421+ )
401422 ->addArgument(new Reference('session'))
402423 ->addTag('monolog.processor', array('method' => 'processRecord', 'handler' => 'main'));
403424
@@ -429,10 +450,12 @@ the ``monolog.processor`` tag:
429450 xsi : schemaLocation =" http://symfony.com/schema/dic/services
430451 http://symfony.com/schema/dic/services/services-1.0.xsd
431452 http://symfony.com/schema/dic/monolog
432- http://symfony.com/schema/dic/monolog/monolog-1.0.xsd"
433- >
453+ http://symfony.com/schema/dic/monolog/monolog-1.0.xsd" >
454+
434455 <services >
435- <service id =" monolog.processor.session_request" class =" Acme\MyBundle\SessionRequestProcessor" >
456+ <service id =" monolog.processor.session_request"
457+ class =" Acme\MyBundle\SessionRequestProcessor" >
458+
436459 <argument type =" service" id =" session" />
437460 <tag name =" monolog.processor" method =" processRecord" channel =" main" />
438461 </service >
@@ -443,7 +466,10 @@ the ``monolog.processor`` tag:
443466
444467 // app/config/config.php
445468 $container
446- ->register('monolog.processor.session_request', 'Acme\MyBundle\SessionRequestProcessor')
469+ ->register(
470+ 'monolog.processor.session_request',
471+ 'Acme\MyBundle\SessionRequestProcessor'
472+ )
447473 ->addArgument(new Reference('session'))
448474 ->addTag('monolog.processor', array('method' => 'processRecord', 'channel' => 'main'));
449475
0 commit comments