PyDocs

Nav

Generic Operating System Services

BaseRotatingHandler.rotation_filename

logging.handlers

method of BaseRotatingHandler · Added in 3.3 (source)
  • BaseRotatingHandler.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.

:param default_name: The default name for the log file.
0 Examples
No examples for logging.handlers/BaseRotatingHandler.rotation_filename.
See Also
No see-alsos for logging.handlers/BaseRotatingHandler.rotation_filename
0 Notes
No notes for BaseRotatingHandler.rotation_filename