Skip to content
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

Disable NOTICE #2

Open
TwinMist opened this issue Sep 19, 2016 · 1 comment
Open

Disable NOTICE #2

TwinMist opened this issue Sep 19, 2016 · 1 comment
Labels

Comments

@TwinMist
Copy link

Hi How do you go about disabling the Notice?

[22852] 20160919-130442 +01:00 | NOTICE | Process #22854 has quit with code 0 (BackgroundWorkerManager.php:75)

@no7mks
Copy link
Contributor

no7mks commented Sep 19, 2016

the notice (and all other debug traces) are sent to MLogging (which is defined in oasis/logging). If you would like to disable it, try use the NullHandler from monolog:

<?php
use Monolog\Handler\NullHandler;
use Oasis\Mlib\Logging\MLogging;

MLogging::addHandler(new NullHandler());

In case you would like to log it somewhere, you can add other handlers like a stream handler

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants