Seldaek / monolog

Sends your logs to files, sockets, inboxes, databases and various web services
https://seldaek.github.io/monolog/
MIT License
21.02k stars 1.9k forks source link

setting log level at runtime #1821

Closed LiamFry closed 1 year ago

LiamFry commented 1 year ago

Monolog version 3 Per #1418, I see that there is no [longer the] concept of "get level" in Monolog. Does this mean there's no way to change the log level at runtime?

Seldaek commented 1 year ago

Not sure what you mean, changing the minimum level handled? You can do it via the FilterHandler (then nest your handler in it, and make sure the nested one accepts everything), that one has setAcceptedLevels