Permalink
Browse files

[MonologBundle] added configuration info

  • Loading branch information...
1 parent 9757958 commit 2f8ad93db84660db44571f0182b4d3514112c741 @kbond kbond committed with kbond Jun 14, 2011
Showing with 20 additions and 0 deletions.
  1. +20 −0 src/Symfony/Bundle/MonologBundle/DependencyInjection/Configuration.php
@@ -107,6 +107,26 @@ public function getConfigTreeBuilder()
->ifTrue(function($v) { return isset($v['debug']); })
->thenInvalid('The "debug" name cannot be used as it is reserved for the handler of the profiler')
->end()
+ ->setExample(array(
+ 'syslog' => array(
+ 'type' => 'stream',
+ 'path' => '/var/log/symfony.log',
+ 'level' => 'ERROR',
+ 'bubble' => 'false',
+ 'formatter' => 'my_formatter',
+ 'processors' => array('some_callable')
+ ),
+ 'main' => array(
+ 'type' => 'fingerscrossed',
+ 'action_level' => 'WARNING',
+ 'buffer_size' => 30,
+ 'handler' => 'custom',
+ ),
+ 'custom' => array(
+ 'type' => 'service',
+ 'id' => 'my_handler'
+ )
+ ))
->end()
->end()
;

0 comments on commit 2f8ad93

Please sign in to comment.