Peter Otten added the comment:
Simon, in your code you build the config file with
'''...
args=('{0}', 'a', 131072, 10)
...
'''.format(filename)
The logging module uses eval() to process the args tuple, and a filename
containing a bashlash will not roundtrip that way. Have a look at the .conf
file, it contains something like
args=('whatever\testlog\really_cool_logging.log', 'a', 131072, 10)
when it should be
args=('whatever\\testlog\\really_cool_logging.log', 'a', 131072, 10)
To fix this you should drop the quote chars and use the string representation
of the filename:
'''...
args=({0!r}, 'a', 131072, 10)
...
'''.format(filename)
In short: I think Eric was right with initial assumption.
----------
nosy: +peter.otten
_______________________________________
Python tracker <[email protected]>
<http://bugs.python.org/issue19528>
_______________________________________
_______________________________________________
Python-bugs-list mailing list
Unsubscribe:
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com