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 ---
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
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.
>
>
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