3 ms·
import logging logging.warn("something happened") I think all the complaints are overblown... maybe it could be modularized some more, but of all things, I'v
by ak217 15y ago
import logging
logging.warn("something happened")
I think all the complaints are overblown... maybe it could be modularized some more, but of all things, I've never had any problems with logging. All the advanced features are there for a reason and work well.
- brianobush 15y agoTypically you see ten lines of logging setup, formatting, etc. However, I see your point.
- zzzeek 15y agologging.basicConfig() does it in one line, but usually the config file system is used for larger apps. that system is essential so that the logging output of different sub-components can be individually configured and piped to different streams.