diff options
author | Vinay Sajip <vinay_sajip@yahoo.co.uk> | 2011-02-26 14:24:29 +0000 |
---|---|---|
committer | Vinay Sajip <vinay_sajip@yahoo.co.uk> | 2011-02-26 14:24:29 +0000 |
commit | 553de0ee7ce22bf23200845e94076c990f51d7ab (patch) | |
tree | 8893f9e7a27422e04bcb33e4b9922917fd788e6d | |
parent | 859c7fac781866b910a59fec71a52a64bbd0a2e9 (diff) | |
download | cpython-git-553de0ee7ce22bf23200845e94076c990f51d7ab.tar.gz |
Issue #11331: fixed documentation in logging cookbook.
-rw-r--r-- | Doc/howto/logging-cookbook.rst | 2 |
1 files changed, 0 insertions, 2 deletions
diff --git a/Doc/howto/logging-cookbook.rst b/Doc/howto/logging-cookbook.rst index f60b06cb6d..198d89231b 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') |