Skip to content

Commit 481a8e8

Browse files
committed
Merge remote branch 'carlossg00/fix_testing'
* carlossg00/fix_testing: changed to monolog configuration
2 parents 96e9e17 + 14bc7bd commit 481a8e8

File tree

1 file changed

+20
-9
lines changed

1 file changed

+20
-9
lines changed

book/testing.rst

Lines changed: 20 additions & 9 deletions
Original file line numberDiff line numberDiff 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
713724
default debug mode (``true``) by passing them as options to the

0 commit comments

Comments
 (0)