[Python-checkins] cpython (3.2): Issue #12206: documentation for LogRecord constructor updated re. the level

vinay.sajip python-checkins at python.org
Sun Jun 12 00:04:43 CEST 2011


http://hg.python.org/cpython/rev/bb6fe43191c0
changeset: 70803:bb6fe43191c0
branch: 3.2
parent: 70799:6cc4579dca02
user: Vinay Sajip <vinay_sajip at yahoo.co.uk>
date: Sat Jun 11 23:03:37 2011 +0100
summary:
 Issue #12206: documentation for LogRecord constructor updated re. the level argument.
files:
 Doc/library/logging.rst | 3 +++
 1 files changed, 3 insertions(+), 0 deletions(-)
diff --git a/Doc/library/logging.rst b/Doc/library/logging.rst
--- a/Doc/library/logging.rst
+++ b/Doc/library/logging.rst
@@ -544,6 +544,9 @@
 :param name: The name of the logger used to log the event represented by
 this LogRecord.
 :param level: The numeric level of the logging event (one of DEBUG, INFO etc.)
+ Note that this is converted to *two* attributes of the LogRecord:
+ ``levelno`` for the numeric value and ``levelname`` for the
+ corresponding level name.
 :param pathname: The full pathname of the source file where the logging call
 was made.
 :param lineno: The line number in the source file where the logging call was
-- 
Repository URL: http://hg.python.org/cpython


More information about the Python-checkins mailing list

AltStyle によって変換されたページ (->オリジナル) /