diff options
author | Vinay Sajip <vinay_sajip@yahoo.co.uk> | 2016-07-22 18:23:04 +0100 |
---|---|---|
committer | Vinay Sajip <vinay_sajip@yahoo.co.uk> | 2016-07-22 18:23:04 +0100 |
commit | bc72d8635aadf9302dd3bd72acdb6d0039ec5cc4 (patch) | |
tree | e4d063242459fb0ffcc2ef07f42fdea2fc0001ed /Doc/library/logging.handlers.rst | |
parent | ba7c21ae5a444cebdf8478b632a4ab796d484785 (diff) | |
download | cpython-bc72d8635aadf9302dd3bd72acdb6d0039ec5cc4.tar.gz |
Closes #27493: accepted Path objects in file handlers for logging.
Diffstat (limited to 'Doc/library/logging.handlers.rst')
-rw-r--r-- | Doc/library/logging.handlers.rst | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/Doc/library/logging.handlers.rst b/Doc/library/logging.handlers.rst index 266a50084e..748eb3110a 100644 --- a/Doc/library/logging.handlers.rst +++ b/Doc/library/logging.handlers.rst @@ -84,6 +84,9 @@ sends logging output to a disk file. It inherits the output functionality from with that encoding. If *delay* is true, then file opening is deferred until the first call to :meth:`emit`. By default, the file grows indefinitely. + .. versionchanged:: 3.6 + As well as string values, :class:`~pathlib.Path` objects are also accepted + for the *filename* argument. .. method:: close() @@ -160,6 +163,9 @@ for this value. with that encoding. If *delay* is true, then file opening is deferred until the first call to :meth:`emit`. By default, the file grows indefinitely. + .. versionchanged:: 3.6 + As well as string values, :class:`~pathlib.Path` objects are also accepted + for the *filename* argument. .. method:: reopenIfNeeded() @@ -287,6 +293,9 @@ module, supports rotation of disk log files. :file:`app.log.2`, etc. exist, then they are renamed to :file:`app.log.2`, :file:`app.log.3` etc. respectively. + .. versionchanged:: 3.6 + As well as string values, :class:`~pathlib.Path` objects are also accepted + for the *filename* argument. .. method:: doRollover() @@ -365,6 +374,10 @@ timed intervals. .. versionchanged:: 3.4 *atTime* parameter was added. + .. versionchanged:: 3.6 + As well as string values, :class:`~pathlib.Path` objects are also accepted + for the *filename* argument. + .. method:: doRollover() Does a rollover, as described above. |