This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

Author peter.otten
Recipients 51m0n, eric.smith, peter.otten
Date 2013-11-08.16:37:52
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1383928673.12.0.487377695733.issue19528@psf.upfronthosting.co.za>
In-reply-to
Content
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.
History
Date User Action Args
2013-11-08 16:37:53peter.ottensetrecipients: + peter.otten, eric.smith, 51m0n
2013-11-08 16:37:53peter.ottensetmessageid: <1383928673.12.0.487377695733.issue19528@psf.upfronthosting.co.za>
2013-11-08 16:37:53peter.ottenlinkissue19528 messages
2013-11-08 16:37:52peter.ottencreate