summaryrefslogtreecommitdiffstats
path: root/Doc/howto/logging-cookbook.rst
diff options
context:
space:
mode:
authorVinay Sajip <vinay_sajip@yahoo.co.uk>2011-02-26 14:24:29 (GMT)
committerVinay Sajip <vinay_sajip@yahoo.co.uk>2011-02-26 14:24:29 (GMT)
commitdcc9513c676c7e58ab36e1e8df494668702408bd (patch)
tree6fdd9f0ea4b148b595c135e735dc4ca5d7f35578 /Doc/howto/logging-cookbook.rst
parent10914b7473262a108b1de4a72c90d1203471102e (diff)
downloadcpython-dcc9513c676c7e58ab36e1e8df494668702408bd.zip
cpython-dcc9513c676c7e58ab36e1e8df494668702408bd.tar.gz
cpython-dcc9513c676c7e58ab36e1e8df494668702408bd.tar.bz2
Issue #11331: fixed documentation in logging cookbook.
Diffstat (limited to 'Doc/howto/logging-cookbook.rst')
-rw-r--r--Doc/howto/logging-cookbook.rst2
1 files changed, 0 insertions, 2 deletions
diff --git a/Doc/howto/logging-cookbook.rst b/Doc/howto/logging-cookbook.rst
index f60b06c..198d892 100644
--- a/Doc/howto/logging-cookbook.rst
+++ b/Doc/howto/logging-cookbook.rst
@@ -630,8 +630,6 @@ script::
if __name__ == '__main__':
levels = (logging.DEBUG, logging.INFO, logging.WARNING, logging.ERROR, logging.CRITICAL)
- a1 = logging.LoggerAdapter(logging.getLogger('a.b.c'),
- { 'ip' : '123.231.231.123', 'user' : 'sheila' })
logging.basicConfig(level=logging.DEBUG,
format='%(asctime)-15s %(name)-5s %(levelname)-8s IP: %(ip)-15s User: %(user)-8s %(message)s')
a1 = logging.getLogger('a.b.c')