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
On Jul 15, 3:04 pm, Matthew Wilson [EMAIL PROTECTED] wrote:
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 configuringloggingusing a config file - this is because
loggingconfiguration is process-wide,
On Jul 14, 1:21 am, Matthew Wilson [EMAIL PROTECTED] wrote:
I'm working on a package that uses the standard libraryloggingmodule
along with a .cfg file.
In my code, I uselogging.config.fileConfig('/home/matt/mypackage/matt.cfg')
to load in
theloggingconfig file.
However, it seems really
-
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] On
Behalf Of Matthew Wilson
Sent: Monday, July 14, 2008 8:21 AM
To: python-list@python.org
Subject: How to package a logging.config file?
I'm working on a package that uses the standard library logging module
along with a .cfg file.
In my code, I
I'm working on a package that uses the standard library logging module
along with a .cfg file.
In my code, I use
logging.config.fileConfig('/home/matt/mypackage/matt.cfg') to load in
the logging config file.
However, it seems really obvious to me that this won't work when I share
this package
Matthew Wilson wrote:
I'm working on a package that uses the standard library logging module
along with a .cfg file.
In my code, I use
logging.config.fileConfig('/home/matt/mypackage/matt.cfg') to load in
the logging config file.
However, it seems really obvious to me that this won't work when