diff options
author | Eric Smith <eric@trueblade.com> | 2009-06-04 17:58:15 (GMT) |
---|---|---|
committer | Eric Smith <eric@trueblade.com> | 2009-06-04 17:58:15 (GMT) |
commit | e7dbebbadf40b4b2524b015495eaa2aa0c2f82df (patch) | |
tree | d4e9bc75422a8e5e597cee60d04da863376f2116 /Doc/library | |
parent | 5000b3b8a7ccb4d457e4b27381fcdd6cf6c8349d (diff) | |
download | cpython-e7dbebbadf40b4b2524b015495eaa2aa0c2f82df.zip cpython-e7dbebbadf40b4b2524b015495eaa2aa0c2f82df.tar.gz cpython-e7dbebbadf40b4b2524b015495eaa2aa0c2f82df.tar.bz2 |
Minor documentation fixes for logging.
Diffstat (limited to 'Doc/library')
-rw-r--r-- | Doc/library/logging.rst | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/Doc/library/logging.rst b/Doc/library/logging.rst index b555393..4847c70 100644 --- a/Doc/library/logging.rst +++ b/Doc/library/logging.rst @@ -69,7 +69,7 @@ message:: DEBUG:root:This message should go to the log file If you run the script repeatedly, the additional log messages are appended to -the file. To create a new file each time, you can pass a filemode argument to +the file. To create a new file each time, you can pass a *filemode* argument to :func:`basicConfig` with a value of ``'w'``. Rather than managing the file size yourself, though, it is simpler to use a :class:`RotatingFileHandler`:: @@ -112,7 +112,7 @@ application:: The most current file is always :file:`/tmp/logging_rotatingfile_example.out`, and each time it reaches the size limit it is renamed with the suffix ``.1``. Each of the existing backup files is renamed to increment the suffix -(``.1`` becomes ``.2``, etc.) and the ``.5`` file is erased. +(``.1`` becomes ``.2``, etc.) and the ``.6`` file is erased. Obviously this example sets the log length much much too small as an extreme example. You would want to set *maxBytes* to an appropriate value. |