File tree Expand file tree Collapse file tree 1 file changed +20
-9
lines changed Expand file tree Collapse file tree 1 file changed +20
-9
lines changed Original file line number Diff line number Diff line change @@ -664,9 +664,12 @@ The Client used by functional tests creates a Kernel that runs in a special
664664 toolbar : false
665665 intercept_redirects : false
666666
667- zend :
668- logger :
669- priority : debug
667+ monolog :
668+ handlers :
669+ main :
670+ type : stream
671+ path : %kernel.logs_dir%/%kernel.environment%.log
672+ level : debug
670673
671674 .. code-block :: xml
672675
@@ -685,9 +688,13 @@ The Client used by functional tests creates a Kernel that runs in a special
685688 <framework : test />
686689 </framework : config >
687690
688- <zend : config >
689- <zend : logger priority =" debug" />
690- </zend : config >
691+ <monolog : config >
692+ <monolog : main
693+ type =" stream"
694+ path =" %kernel.logs_dir%/%kernel.environment%.log"
695+ level =" debug"
696+ />
697+ </monolog : config >
691698 </container >
692699
693700 .. code-block :: php
@@ -705,9 +712,13 @@ The Client used by functional tests creates a Kernel that runs in a special
705712 'intercept-redirects' => false,
706713 ));
707714
708- $container->loadFromExtension('zend', array(
709- 'logger' => array('priority' => 'debug'),
710- ));
715+ $container->loadFromExtension('monolog', array(
716+ 'handlers' => array(
717+ 'main' => array('type' => 'stream',
718+ 'path' => '%kernel.logs_dir%/%kernel.environment%.log'
719+ 'level' => 'debug')
720+
721+ )));
711722
712723 You can also change the default environment (``test ``) and override the
713724default debug mode (``true ``) by passing them as options to the
You can’t perform that action at this time.
0 commit comments