]> granicus.if.org Git - python/commitdiff
Minor documentation fixes for logging.
authorEric Smith <eric@trueblade.com>
Thu, 4 Jun 2009 17:58:15 +0000 (17:58 +0000)
committerEric Smith <eric@trueblade.com>
Thu, 4 Jun 2009 17:58:15 +0000 (17:58 +0000)
Doc/library/logging.rst

index b5553934c61a967a8038f60303690c9bcbcc5da8..4847c7090c3d606809cb9838a474d2ca59c1bbf6 100644 (file)
@@ -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.