Reputation: 673
I have recently switched from using 'logging' to 'logbook'.
So far, so good, but I am missing one critical functionality - ability to change the minimum level during runtime.
In 'logging', I can call myLogger.setLevel(logging.INFO), but there is no equivalent method in logbook.
Anyone?
Upvotes: 3
Views: 1557
Reputation: 673
Very simple (and undocumented) - modify the 'level' attribute:
myLogger.level = logbook.INFO
Upvotes: 5