Permalink
Browse files

Merge pull request #1 from symfony/chromephp

Added the support of the ChromePhpHandler
  • Loading branch information...
2 parents bc649c0 + 4b11f59 commit 74a5aeee327155f788b7c2d84ef80c65c4c5ed5d @stof stof committed Feb 22, 2012
Showing with 9 additions and 0 deletions.
  1. +8 −0 DependencyInjection/MonologExtension.php
  2. +1 −0 Resources/config/monolog.xml
@@ -124,6 +124,14 @@ private function buildHandler(ContainerBuilder $container, $name, array $handler
$definition->addTag('kernel.event_listener', array('event' => 'kernel.response', 'method' => 'onKernelResponse'));
break;
+ case 'chromephp':
+ $definition->setArguments(array(
+ $handler['level'],
+ $handler['bubble'],
+ ));
+ $definition->addTag('kernel.event_listener', array('event' => 'kernel.response', 'method' => 'onKernelResponse'));
+ break;
+
case 'rotating_file':
$definition->setArguments(array(
$handler['path'],
@@ -15,6 +15,7 @@
<parameter key="monolog.handler.null.class">Monolog\Handler\NullHandler</parameter>
<parameter key="monolog.handler.test.class">Monolog\Handler\TestHandler</parameter>
<parameter key="monolog.handler.firephp.class">Symfony\Bridge\Monolog\Handler\FirePHPHandler</parameter>
+ <parameter key="monolog.handler.chromephp.class">Symfony\Bridge\Monolog\Handler\ChromePhpHandler</parameter>
<parameter key="monolog.handler.debug.class">Symfony\Bridge\Monolog\Handler\DebugHandler</parameter>
<parameter key="monolog.handler.swift_mailer.class">Monolog\Handler\SwiftMailerHandler</parameter>
<parameter key="monolog.handler.native_mailer.class">Monolog\Handler\NativeMailerHandler</parameter>

0 comments on commit 74a5aee

Please sign in to comment.