logging.handlers.BaseRotatingHandler.rotation_filename()

rotation_filename(default_name)

Modify the filename of a log file when rotating.

This is provided so that a custom filename can be provided.

The default implementation calls the ‘namer’ attribute of the handler, if it’s callable, passing the default name to it. If the attribute isn’t callable (the default is None), the name is returned unchanged.

Parameters: default_name – The default name for the log file.

New in version 3.3.

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

Please login to continue.