How to package a logging.config file?
- From: Matthew Wilson <matt@xxxxxxxxxx>
- Date: Mon, 14 Jul 2008 00:21:04 GMT
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 with others.
I can't figure out what path to use when I load my .cfg file.
Any ideas?
Matt
.
- Follow-Ups:
- RE: How to package a logging.config file?
- From: Younger Wang
- Re: How to package a logging.config file?
- From: Vinay Sajip
- Re: How to package a logging.config file?
- From: Larry Bates
- RE: How to package a logging.config file?
- Prev by Date: Re: Using Groups inside Braces with Regular Expressions
- Next by Date: Re: socket.connect() hangs in SYN_SENT state.
- Previous by thread: Dictionary bidirectional
- Next by thread: Re: How to package a logging.config file?
- Index(es):
Relevant Pages
|