[issue1765140] logging: delay_fh option and configuration kwargs
report at bugs.python.org
Sat Sep 8 14:01:46 CEST 2007
Vinay Sajip added the comment:
Thanks for the patch. I think it would be simpler to just implement an
optional delay parameter in FileHandler and its subclasses: then the
configuration stuff need not be touched at all, since the delay
parameter can be specified in the configuration file. There would then
be no need for a callback or a file-opening closure: If delay is False
(the default), FileHandler would behave as it does now. If True, then
the open code in FileHandler's constructor would be deferred until the
time emit() was called on the instance.
Would this meet your needs?
Tracker <report at bugs.python.org>
More information about the Python-bugs-list