[issue6667] logging config - using FileHandler's delay argument?

maro report at bugs.python.org
Fri Aug 7 11:53:31 CEST 2009


New submission from maro <misgis at gmail.com>:

I'm not sure, if it's an issue. I don't know how to use argument 'delay'
of FileHandler in my logging.conf file.

[handler_tarFileHandler]
class=FileHandler
level=DEBUG
formatter=simpleFormatter
args=('/tmp/_tar2ncConverter.log','a+')
delay=True # file is created only when first message is emited (delay =
True), not working, empty file is always created...

If I put delay to FileHandler's constructor args
('/tmp/_tar2ncConverter.log','a+',None,True) I get error message about
missing arguments. It is an issue, or just my wrong arranged args?

regards 
maro

----------
components: None
messages: 91400
nosy: maro
severity: normal
status: open
title: logging config - using FileHandler's delay argument?
type: behavior
versions: Python 2.6

_______________________________________
Python tracker <report at bugs.python.org>
<http://bugs.python.org/issue6667>
_______________________________________


More information about the Python-bugs-list mailing list