[issue33506] [logging] template for filename timestamps

Steve R. Hastings report at bugs.python.org
Mon May 14 21:57:40 EDT 2018


Steve R. Hastings <steveha at users.sourceforge.net> added the comment:

> What about [ BaseRotatingHandler.namer ] which allows you to specify your own naming scheme?

I confess that I overlooked that; it was added later than the version of Python in which I wrote my original code.

The current Python code still has a small set of predefined file templates, but now has a way to specify a callable that can completely override the filename.  I agree that this can be used to implement any desired filename system, although it would be more work than simply specifying the desired template codes.

Are you planning to remove the predefined filename templates and produce a more functional version of the code where the .namer() function is always used to produce a filename, with a set of predefined functions that produce equivalent filenames to the built-in templates?

----------

_______________________________________
Python tracker <report at bugs.python.org>
<https://bugs.python.org/issue33506>
_______________________________________


More information about the Python-bugs-list mailing list