Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 5c01a8d

Browse files
committed
Merged revisions 73224 via svnmerge from
svn+ssh://[email protected]/python/trunk ........ r73224 | eric.smith | 2009-06-04 13:58:15 -0400 (Thu, 04 Jun 2009) | 1 line Minor documentation fixes for logging. ........
1 parent aa5acaa commit 5c01a8d

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

Doc/library/logging.rst

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -67,7 +67,7 @@ message::
6767
DEBUG:root:This message should go to the log file
6868

6969
If you run the script repeatedly, the additional log messages are appended to
70-
the file. To create a new file each time, you can pass a filemode argument to
70+
the file. To create a new file each time, you can pass a *filemode* argument to
7171
:func:`basicConfig` with a value of ``'w'``. Rather than managing the file size
7272
yourself, though, it is simpler to use a :class:`RotatingFileHandler`::
7373

@@ -110,7 +110,7 @@ application::
110110
The most current file is always :file:`/tmp/logging_rotatingfile_example.out`,
111111
and each time it reaches the size limit it is renamed with the suffix
112112
``.1``. Each of the existing backup files is renamed to increment the suffix
113-
(``.1`` becomes ``.2``, etc.) and the ``.5`` file is erased.
113+
(``.1`` becomes ``.2``, etc.) and the ``.6`` file is erased.
114114

115115
Obviously this example sets the log length much much too small as an extreme
116116
example. You would want to set *maxBytes* to an appropriate value.

0 commit comments

Comments
 (0)