[Python-checkins] r73229 - in python/branches/release30-maint: Doc/library/logging.rst

eric.smith python-checkins at python.org
Thu Jun 4 20:30:12 CEST 2009


Author: eric.smith
Date: Thu Jun 4 20:30:12 2009
New Revision: 73229
Log:
Merged revisions 73228 via svnmerge from 
svn+ssh://pythondev@svn.python.org/python/branches/py3k
................
 r73228 | eric.smith | 2009年06月04日 14:20:51 -0400 (2009年6月04日) | 9 lines
 
 Merged revisions 73224 via svnmerge from 
 svn+ssh://pythondev@svn.python.org/python/trunk
 
 ........
 r73224 | eric.smith | 2009年06月04日 13:58:15 -0400 (2009年6月04日) | 1 line
 
 Minor documentation fixes for logging.
 ........
................
Modified:
 python/branches/release30-maint/ (props changed)
 python/branches/release30-maint/Doc/library/logging.rst
Modified: python/branches/release30-maint/Doc/library/logging.rst
==============================================================================
--- python/branches/release30-maint/Doc/library/logging.rst	(original)
+++ python/branches/release30-maint/Doc/library/logging.rst	Thu Jun 4 20:30:12 2009
@@ -67,7 +67,7 @@
 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`::
 
@@ -110,7 +110,7 @@
 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.


More information about the Python-checkins mailing list

AltStyle によって変換されたページ (->オリジナル) /