diff options
author | Vinay Sajip <vinay_sajip@yahoo.co.uk> | 2011-06-11 22:03:37 (GMT) |
---|---|---|
committer | Vinay Sajip <vinay_sajip@yahoo.co.uk> | 2011-06-11 22:03:37 (GMT) |
commit | 0aaa9e1d7b16e92c0cbe9e40c037c38ba0427840 (patch) | |
tree | 533119e85a0006558f9781e39a596fdd77f63583 /Doc/library | |
parent | 9620cc04634e720d1d016cce4bf02e0c27607e64 (diff) | |
download | cpython-0aaa9e1d7b16e92c0cbe9e40c037c38ba0427840.zip cpython-0aaa9e1d7b16e92c0cbe9e40c037c38ba0427840.tar.gz cpython-0aaa9e1d7b16e92c0cbe9e40c037c38ba0427840.tar.bz2 |
Issue #12206: documentation for LogRecord constructor updated re. the level argument.
Diffstat (limited to 'Doc/library')
-rw-r--r-- | Doc/library/logging.rst | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/Doc/library/logging.rst b/Doc/library/logging.rst index 32f762d..76633db 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 |