[issue1765140] logging: delay_fh option and configuration kwargs

Chris Leary report at bugs.python.org
Mon Sep 10 03:28:25 CEST 2007


Chris Leary added the comment:

Hi Vinay,

I was actually trying to address a use case where the delay_fh option in
the fileConfig() would be necessary.

Let's say I'm running a simulator that I run many instances of at once.
The logging configuration is extensive, so I want to use a configuration
file; however, I don't want any existing log files to be clobbered as
soon as I run fileConfig() -- I want to run fileConfig() to load the
configuration, then remove/modify the handlers /before/ they touch the
file handles.

If fileConfig has no delay_fh option, fileConfig() would create the
FileHandlers with delay_fh as False; therefore, adding the option to the
FileHandler alone isn't enough to fix this use case.

Let me know if this is unclear, or if I should provide a more concrete
example.

_____________________________________
Tracker <report at bugs.python.org>
<http://bugs.python.org/issue1765140>
_____________________________________


More information about the Python-bugs-list mailing list