Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
10 changes: 9 additions & 1 deletion Doc/library/logging.handlers.rst
Original file line number Diff line number Diff line change
Expand Up @@ -352,6 +352,10 @@ module, supports rotation of disk log files.
Outputs the record to the file, catering for rollover as described
previously.

.. method:: shouldRollover(record)

See if the supplied record would cause the file to exceed the configured size limit.

.. _timed-rotating-file-handler:

TimedRotatingFileHandler
Expand Down Expand Up @@ -459,7 +463,11 @@ timed intervals.
.. method:: getFilesToDelete()

Returns a list of filenames which should be deleted as part of rollover. These
are the absolute paths of the oldest backup log files written by the handler.

.. method:: shouldRollover(record)

See if enough time has passed for a rollover to occur and if it has, compute
the next rollover time.

.. _socket-handler:

Expand Down
Loading