This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

Author guettli
Recipients guettli
Date 2014-05-13.13:32:55
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1399987976.18.0.00182198684039.issue21495@psf.upfronthosting.co.za>
In-reply-to
Content
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.
History
Date User Action Args
2014-05-13 13:32:56guettlisetrecipients: + guettli
2014-05-13 13:32:56guettlisetmessageid: <1399987976.18.0.00182198684039.issue21495@psf.upfronthosting.co.za>
2014-05-13 13:32:56guettlilinkissue21495 messages
2014-05-13 13:32:55guettlicreate