Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
C
cpython
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
Kirill Smelkov
cpython
Commits
f468d5b2
Commit
f468d5b2
authored
Dec 19, 2013
by
Vinay Sajip
Browse files
Options
Browse Files
Download
Plain Diff
Closes #19902: Merged update from 3.3.
parents
61e851ba
800e11b4
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
32 additions
and
0 deletions
+32
-0
Doc/library/logging.rst
Doc/library/logging.rst
+32
-0
No files found.
Doc/library/logging.rst
View file @
f468d5b2
...
...
@@ -113,6 +113,8 @@ is the module's name in the Python package namespace.
If
the
root
is
reached
,
and
it
has
a
level
of
NOTSET
,
then
all
messages
will
be
processed
.
Otherwise
,
the
root
's level will be used as the effective level.
See :ref:`levels` for a list of levels.
.. versionchanged:: 3.2
The *lvl* parameter now accepts a string representation of the
level such as '
INFO
' as an alternative to the integer constants
...
...
@@ -316,6 +318,34 @@ is the module's name in the Python package namespace.
..
versionadded
::
3.2
..
_levels
:
Logging
Levels
--------------
The
numeric
values
of
logging
levels
are
given
in
the
following
table
.
These
are
primarily
of
interest
if
you
want
to
define
your
own
levels
,
and
need
them
to
have
specific
values
relative
to
the
predefined
levels
.
If
you
define
a
level
with
the
same
numeric
value
,
it
overwrites
the
predefined
value
;
the
predefined
name
is
lost
.
+--------------+---------------+
|
Level
|
Numeric
value
|
+==============+===============+
|
``
CRITICAL
``
|
50
|
+--------------+---------------+
|
``
ERROR
``
|
40
|
+--------------+---------------+
|
``
WARNING
``
|
30
|
+--------------+---------------+
|
``
INFO
``
|
20
|
+--------------+---------------+
|
``
DEBUG
``
|
10
|
+--------------+---------------+
|
``
NOTSET
``
|
0
|
+--------------+---------------+
..
_handler
:
Handler
Objects
...
...
@@ -356,6 +386,8 @@ subclasses. However, the :meth:`__init__` method in subclasses needs to call
severe
than
*
lvl
*
will
be
ignored
.
When
a
handler
is
created
,
the
level
is
set
to
:
const
:`
NOTSET
`
(
which
causes
all
messages
to
be
processed
).
See
:
ref
:`
levels
`
for
a
list
of
levels
.
..
versionchanged
::
3.2
The
*
lvl
*
parameter
now
accepts
a
string
representation
of
the
level
such
as
'INFO'
as
an
alternative
to
the
integer
constants
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment