Hacker News new | ask | show | jobs
by ajanuary 4858 days ago
Presumably with this method you can't selectively increase and decrease log levels for different components? That can be really useful in a large system where you don't want to generate several gigs of logging to sift through all the time, but sometimes you do want that extra detail to track down a tricky bug.
1 comments

You can because you’re still using logging if you want. You only use a different ‘Handler’ which writes your entries to stderr instead of into a file. That’s the advantage of logging’s modularity.

In the examples, I set the log level to INFO for instance.