[Python-checkins] r88645 - in python/branches: py3k/Doc/howto/logging-cookbook.rst release32-maint/Doc/howto/logging-cookbook.rst
vinay.sajip
python-checkins at python.org
Sat Feb 26 15:24:30 CET 2011
Author: vinay.sajip
Date: Sat Feb 26 15:24:29 2011
New Revision: 88645
Log:
Issue #11331: fixed documentation in logging cookbook.
Modified:
python/branches/py3k/Doc/howto/logging-cookbook.rst
python/branches/release32-maint/Doc/howto/logging-cookbook.rst
Modified: python/branches/py3k/Doc/howto/logging-cookbook.rst
==============================================================================
--- python/branches/py3k/Doc/howto/logging-cookbook.rst (original)
+++ python/branches/py3k/Doc/howto/logging-cookbook.rst Sat Feb 26 15:24:29 2011
@@ -630,8 +630,6 @@
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')
Modified: python/branches/release32-maint/Doc/howto/logging-cookbook.rst
==============================================================================
--- python/branches/release32-maint/Doc/howto/logging-cookbook.rst (original)
+++ python/branches/release32-maint/Doc/howto/logging-cookbook.rst Sat Feb 26 15:24:29 2011
@@ -630,8 +630,6 @@
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')
More information about the Python-checkins
mailing list