8000 MonologBundle by Seldaek · Pull Request #111 · symfony/symfony · GitHub
[go: up one dir, main page]

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
Show file tree
Hide file tree
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
[MonologBundle] Some code reorganisation
  • Loading branch information
Seldaek committed Feb 25, 2011
commit 786df627ac831d58c1b4c0352c744a8d03ee25e1
F77B
Original file line number Diff line number Diff line change
Expand Up @@ -49,11 +49,11 @@ public function getConfigTree()
->then(function($v) { return strtolower($v); })
->end()
->end()
->scalarNode('action_level')->end()
->scalarNode('level')->defaultValue('INFO')->end()
->scalarNode('path')->end()
->booleanNode('bubble')->defaultFalse()->end()
->scalarNode('buffer_size')->end()
->scalarNode('path')->end() // stream specific
->scalarNode('action_level')->end() // fingerscrossed specific
->scalarNode('buffer_size')->end() // fingerscrossed specific
->arrayNode('handler')
->performNoDeepMerging()
->scalarNode('type')
Expand All @@ -64,7 +64,8 @@ public function getConfigTree()
->end()
->end()
->scalarNode('level')->defaultValue('DEBUG')->end()
->scalarNode('path')->end()
->booleanNode('bubble')->defaultFalse()->end()
->scalarNode('path')->end() // stream specific
->end()
->validate()
->ifTrue(function($v) { return 'fingerscrossed' === $v['type'] && !isset($v['handler']); })
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,6 @@
</xsd:all>
<xsd:attributeGroup ref="handler_attributes" />
<xsd:attribute name="name" type="xsd:string" use="required">
<xsd:attribute name="bubble" type="xsd:boolean" />
<xsd:attribute name="action-level" type="level" />
<xsd:attribute name="buffer-size" type="xsd:integer" />
</xsd:complexType>
Expand All @@ -45,6 +44,7 @@
<xsd:attributeGroup name="handler_attributes">
<xsd:attribute name="type" type="xsd:string" use="required" />
<xsd:attribute name="level" type="level" />
<xsd:attribute name="bubble" type="xsd:boolean" />
<xsd:attribute name="path" type="xsd:string" />
</xsd:attributeGroup>
</xsd:schema>
0