Re: Custom log handler and logging.config.fileConfig()

2008-05-29 Thread Vinay Sajip
On 29 May, 15:53, "Lowell Alleman" <[EMAIL PROTECTED]> wrote: > Is there any reason not to do this assignment in the "myhandler.py" > directly? This would save a step for each application that needs to > use it. > > Starting from your example, it would now look like this: > > # -- myhandler.py ---

Re: Custom log handler and logging.config.fileConfig()

2008-05-29 Thread Lowell Alleman
Is there any reason not to do this assignment in the "myhandler.py" directly? This would save a step for each application that needs to use it. Starting from your example, it would now look like this: # -- myhandler.py --- import logging.handlers class MySpecialHandler(logging.handlers.Rotating

Re: Custom log handler and logging.config.fileConfig()

2008-05-29 Thread Vinay Sajip
On May 28, 9:53 pm, "Lowell Alleman" <[EMAIL PROTECTED]> wrote: > Here is the situation: I wrote my own log handler class (derived > fromlogging.Handler) and I want to be able to use it from aloggingconfig > file, that is, a config file loaded with thelogging.config.fileConfig() > function. > >

Custom log handler and logging.config.fileConfig()

2008-05-28 Thread Lowell Alleman
Here is the situation: I wrote my own log handler class (derived from logging.Handler) and I want to be able to use it from a logging config file, that is, a config file loaded with the logging.config.fileConfig() function. Let say my logging class is called "MyLogHandler" and it's in a module ca