inpsyde/Wonolog

Multiple Handlers not working

Closed this issue · 1 comments

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);

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