8 ms·
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 y
by ajanuary 14y 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.
- hynek 14y agoYou 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.