]> granicus.if.org Git - python/commitdiff
Issue #8890: Documentation changed to avoid reference to temporary files.
authorVinay Sajip <vinay_sajip@yahoo.co.uk>
Thu, 3 Jun 2010 22:34:42 +0000 (22:34 +0000)
committerVinay Sajip <vinay_sajip@yahoo.co.uk>
Thu, 3 Jun 2010 22:34:42 +0000 (22:34 +0000)
Doc/library/logging.rst

index 6b2afeff14348c6d4d238ea21f86b5a0da0b4256..ea6946362d2d67ff604e32927dd440e2ee8d3c65 100644 (file)
@@ -55,10 +55,12 @@ Simple examples
 
 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')