New submission from Thomas Guettler: Imagine you write a small console script which is implemented like a library.
This tool has to do two things: the console script needs to configure the logging, and the library needs to use it. The library usage of logging it easy well documented: {{{ logger=logging.getLogger(__name__) }}} But the part in the console script has no sane default in the python world. I know how to set up the logging config with BasicConfig, DictConfig, ... There needs to be something like DefaultConfig() which reads its config from well known places. This bug report is not about clever code solutions. It is about a sane and easy default agreement on how to load the logging configuration. ---------- messages: 218453 nosy: guettli priority: normal severity: normal status: open title: Sane default for logging config _______________________________________ Python tracker <rep...@bugs.python.org> <http://bugs.python.org/issue21495> _______________________________________ _______________________________________________ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com