-
-
Notifications
You must be signed in to change notification settings - Fork 232
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
Cannot use the NullHandler with XML configuration #133
Comments
It is not treated as an empty string, but as |
Yes indeed. |
I don't know if we can do much about this, given XML is string only it will always be normalized after.. |
What about changing the key for the <monolog:config>
<monolog:handler name="nolog_handler" type="nolog" />
</monolog:config> |
I'd rather not change it but maybe we can have an alias as workaround
for xml.
|
what about |
I would go with |
|
Pr sent: #400 |
Hi,
I'm working on a Symfony 2 application, and I'd like to temporary disable logging.
I found that adding the
NullHandler
on top of the configured handlers shall do the job.Here's my monolog XML configuration:
However, when I access a web page, this error occured:
It seems the
null
type in the XML parameter is treated as a blank string, and I guess there may be an issue in theConfiguration
class of the bundle.What is your opinion?
Thanks for your help,
BR
The text was updated successfully, but these errors were encountered: