How to package a logging.config file?
matt at tplus1.com
Tue Jul 15 16:04:41 CEST 2008
On Mon 14 Jul 2008 09:25:19 AM EDT, Vinay Sajip wrote:
> Is your package a library or an application? If it's a library, you
> should avoid configuring logging using a config file - this is because
> logging configuration is process-wide, and if multiple libraries use
> fileConfig to configure their logging, you may get unexpected results.
I thought that the point of using logging.getLogger('foo.bar.baz') was
to allow each module/class/function to choose from the available
So, I can define a really weird logger and still be a good citizen.
As long as I don't tweak the root logger, is it safe to use a config
More information about the Python-list