3 ms·
The boilerplate required to enable logging is just too much. This is why people rarely do it and then we end up with a million types of logging styles.
by brianobush 15y ago
The boilerplate required to enable logging is just too much. This is why people rarely do it and then we end up with a million types of logging styles.
- ak217 15y agoimport 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.