Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 0aaa9e1

Browse files
committed
Issue #12206: documentation for LogRecord constructor updated re. the level argument.
1 parent 9620cc0 commit 0aaa9e1

1 file changed

Lines changed: 3 additions & 0 deletions

File tree

Doc/library/logging.rst

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -544,6 +544,9 @@ wire).
544544
:param name: The name of the logger used to log the event represented by
545545
this LogRecord.
546546
:param level: The numeric level of the logging event (one of DEBUG, INFO etc.)
547+
Note that this is converted to *two* attributes of the LogRecord:
548+
``levelno`` for the numeric value and ``levelname`` for the
549+
corresponding level name.
547550
:param pathname: The full pathname of the source file where the logging call
548551
was made.
549552
:param lineno: The line number in the source file where the logging call was

0 commit comments

Comments
 (0)