You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Hm yes there is no real way to do this at this point except creating a new Logger and pushing all of them in again except the one you want, or popping until you got the right one and then push again the others.. Not very user friendly I agree, but somehow this is rarely needed except to add a handler temporarily and then remove it again (hence the push/pop).
This feature would be useful to speed up work when using Monolog wrapper in some frameworks like Laravel, where i.e. Laravel log file is already assigned by default.
Hi,
Let's assume we have the logger with 3 handlers and I want to remove the first one I've pushed.
I found that I can remove handler like this:
But it would remove the most recent handler.
I can iterate through the handlers using getHandlers(), but when I do
It doesn't help.
How to remove the one I want?
The text was updated successfully, but these errors were encountered: