[Python-checkins] r81680 - python/trunk/Doc/library/logging.rst

vinay.sajip python-checkins at python.org
Fri Jun 4 00:34:42 CEST 2010


Author: vinay.sajip
Date: Fri Jun  4 00:34:42 2010
New Revision: 81680

Log:
Issue #8890: Documentation changed to avoid reference to temporary files.

Modified:
   python/trunk/Doc/library/logging.rst

Modified: python/trunk/Doc/library/logging.rst
==============================================================================
--- python/trunk/Doc/library/logging.rst	(original)
+++ python/trunk/Doc/library/logging.rst	Fri Jun  4 00:34:42 2010
@@ -55,10 +55,12 @@
 
 Most applications are probably going to want to log to a file, so let's start
 with that case. Using the :func:`basicConfig` function, we can set up the
-default handler so that debug messages are written to a file::
+default handler so that debug messages are written to a file (in the example,
+we assume that you have the appropriate permissions to create a file called
+*example.log* in the current directory::
 
    import logging
-   LOG_FILENAME = '/tmp/logging_example.out'
+   LOG_FILENAME = 'example.log'
    logging.basicConfig(filename=LOG_FILENAME,level=logging.DEBUG)
 
    logging.debug('This message should go to the log file')


More information about the Python-checkins mailing list