From: Vinay Sajip Date: Sat, 11 Jun 2011 22:03:37 +0000 (+0100) Subject: Issue #12206: documentation for LogRecord constructor updated re. the level argument. X-Git-Tag: v3.3.0a1~2124^2 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=0aaa9e1d7b16e92c0cbe9e40c037c38ba0427840;p=python Issue #12206: documentation for LogRecord constructor updated re. the level argument. --- diff --git a/Doc/library/logging.rst b/Doc/library/logging.rst index 32f762d506..76633dba19 100644 --- a/Doc/library/logging.rst +++ b/Doc/library/logging.rst @@ -544,6 +544,9 @@ wire). :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