inpsyde / Wonolog

Monolog-based logging package for WordPress.
https://inpsyde.github.io/Wonolog/
MIT License
173 stars 17 forks source link

Multiple Handlers not working #38

Closed loibi93 closed 6 years ago

loibi93 commented 6 years ago

Hey guys, I am not able to get the following to work:

$wonolog_context = Inpsyde\Wonolog\bootstrap(); $awesome_handler = new MyAwesomeHandler(); $wonolog_context->use_handler($awesome_handler);

What I expect is, that everything is logged to disk and also to MyAwesomeHandler, but it is only logged to disk. When I do the following, MyAwesomeHandler is working as expected, but obviously no Disk Logging:

$wonolog_context = Wonolog\bootstrap( null, Wonolog\USE_DEFAULT_NONE ); $awesome_handler = new MyAwesomeHandler(); $wonolog_context-> use_default_handler($awesome_handler);

loibi93 commented 6 years ago

Nevermind, I am stupid and forgot to call the function that was setting up my handler, sorry ;)