summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorVinay Sajip <vinay_sajip@yahoo.co.uk>2010-06-03 22:34:42 (GMT)
committerVinay Sajip <vinay_sajip@yahoo.co.uk>2010-06-03 22:34:42 (GMT)
commit9a26aabf89c1f64574c350ef1386cb14eec4827d (patch)
tree9e9c13a2e84241a43112c5c115bd61775e3e460e
parent3b95934e0585762661269d41b5a5d79f1b9c2244 (diff)
downloadcpython-9a26aabf89c1f64574c350ef1386cb14eec4827d.zip
cpython-9a26aabf89c1f64574c350ef1386cb14eec4827d.tar.gz
cpython-9a26aabf89c1f64574c350ef1386cb14eec4827d.tar.bz2
Issue #8890: Documentation changed to avoid reference to temporary files.
-rw-r--r--Doc/library/logging.rst6
1 files changed, 4 insertions, 2 deletions
diff --git a/Doc/library/logging.rst b/Doc/library/logging.rst
index 6b2afef..ea69463 100644
--- a/Doc/library/logging.rst
+++ b/Doc/library/logging.rst
@@ -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')