Skip to content

MonologBundle #111

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
wants to merge 16 commits into from
Closed
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
Fixed previous commit
  • Loading branch information
stof committed Feb 25, 2011
commit ec8880a563ac982d8269c858778c14ae938dbbcc
Original file line number Diff line number Diff line change
Expand Up @@ -66,10 +66,16 @@ public function getConfigTree()
->scalarNode('level')->defaultValue('DEBUG')->end()
->booleanNode('bubble')->defaultFalse()->end()
->scalarNode('path')->end() // stream specific
->validate()
->ifTrue(function($v) { return 'stream' === $v['type'] && !isset($v['path']); })
->thenInvalid('The path has to be specified to use a StreamHandler')
->end()
->end()
->validate()
->ifTrue(function($v) { return 'fingerscrossed' === $v['type'] && !isset($v['handler']); })
->thenInvalid('The handler has to be specified to use a FingersCrossedHandler')
->end()
->validate()
->ifTrue(function($v) { return 'stream' === $v['type'] && !isset($v['path']); })
->thenInvalid('The path has to be specified to use a StreamHandler')
->end()
Expand Down