Skip to content

Commit 9be384c

Browse files
committed
[MonologBundle] added configuration info
1 parent 6dbe474 commit 9be384c

File tree

1 file changed

+20
-0
lines changed

1 file changed

+20
-0
lines changed

DependencyInjection/Configuration.php

Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -107,6 +107,26 @@ public function getConfigTreeBuilder()
107107
->ifTrue(function($v) { return isset($v['debug']); })
108108
->thenInvalid('The "debug" name cannot be used as it is reserved for the handler of the profiler')
109109
->end()
110+
->setExample(array(
111+
'syslog' => array(
112+
'type' => 'stream',
113+
'path' => '/var/log/symfony.log',
114+
'level' => 'ERROR',
115+
'bubble' => 'false',
116+
'formatter' => 'my_formatter',
117+
'processors' => array('some_callable')
118+
),
119+
'main' => array(
120+
'type' => 'fingerscrossed',
121+
'action_level' => 'WARNING',
122+
'buffer_size' => 30,
123+
'handler' => 'custom',
124+
),
125+
'custom' => array(
126+
'type' => 'service',
127+
'id' => 'my_handler'
128+
)
129+
))
110130
->end()
111131
->end()
112132
;

0 commit comments

Comments
 (0)