logging.handlers.BaseRotatingHandler.namer

namer

If this attribute is set to a callable, the rotation_filename() method delegates to this callable. The parameters passed to the callable are those passed to rotation_filename().

Note

The namer function is called quite a few times during rollover, so it should be as simple and as fast as possible. It should also return the same output every time for a given input, otherwise the rollover behaviour may not work as expected.

New in version 3.3.

doc_python
2016-10-07 17:36:08
Comments
Leave a Comment

Please login to continue.