Re:Taking some pain out of Python logging
by ajanuary on Wednesday March 06, 2013 @12:19PM
(#5332281)
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.
[ Parent
| on HN ]
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.