Re: How to package a logging.config file?
- From: Matthew Wilson <matt@xxxxxxxxxx>
- Date: Tue, 15 Jul 2008 14:04:41 GMT
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
configurations.
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
file?
Matt
.
- Follow-Ups:
- Re: How to package a logging.config file?
- From: Vinay Sajip
- Re: How to package a logging.config file?
- References:
- How to package a logging.config file?
- From: Matthew Wilson
- Re: How to package a logging.config file?
- From: Vinay Sajip
- How to package a logging.config file?
- Prev by Date: Re: Simplify Code
- Next by Date: Re: Type Problem
- Previous by thread: Re: How to package a logging.config file?
- Next by thread: Re: How to package a logging.config file?
- Index(es):
Relevant Pages
|