PyDocs

Nav

Generic Operating System Services

RotatingFileHandler

  • RotatingFileHandler(filename, mode='a', maxBytes=0, backupCount=0, encoding=None, delay=False, errors=None)
Handler for logging to a set of files, which switches from one file
to the next when the current file reaches a certain size.
Changed in 3.6, 3.9
  • 3.6: As well as string values, Path objects are also accepted for the filename argument.
  • 3.9: The errors parameter was added.
Members of RotatingFileHandler

d

doRollover
Do a rollover, as described in __init__().

e

emit
Emit a record.

s

shouldRollover
Determine if rollover should occur.
0 Examples
No examples for logging.handlers/RotatingFileHandler.
See Also
No see-alsos for logging.handlers/RotatingFileHandler
0 Notes
No notes for RotatingFileHandler