Message218453
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. |
|
Date |
User |
Action |
Args |
2014-05-13 13:32:56 | guettli | set | recipients:
+ guettli |
2014-05-13 13:32:56 | guettli | set | messageid: <1399987976.18.0.00182198684039.issue21495@psf.upfronthosting.co.za> |
2014-05-13 13:32:56 | guettli | link | issue21495 messages |
2014-05-13 13:32:55 | guettli | create | |
|