[issue21495] Sane default for logging config

Thomas Guettler report at bugs.python.org
Tue May 13 15:32:56 CEST 2014


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 <report at bugs.python.org>
<http://bugs.python.org/issue21495>
_______________________________________


More information about the Python-bugs-list mailing list