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
c1f079f3
Commit
c1f079f3
authored
Jan 14, 2012
by
Gregory P. Smith
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Mention the additional way to use the lvl parameter and when it changed.
parent
b0ae0ac6
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
10 additions
and
0 deletions
+10
-0
Doc/library/logging.rst
Doc/library/logging.rst
+10
-0
No files found.
Doc/library/logging.rst
View file @
c1f079f3
...
...
@@ -87,6 +87,11 @@ instantiated directly, but always through the module-level function
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.
.. versionchanged:: 3.2
The *lvl* parameter now accepts a string representation of the
level such as '
INFO
' as an alternative to the integer constants
such as :const:`INFO`.
.. method:: Logger.isEnabledFor(lvl)
...
...
@@ -319,6 +324,11 @@ 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
).
..
versionchanged
::
3.2
The
*
lvl
*
parameter
now
accepts
a
string
representation
of
the
level
such
as
'INFO'
as
an
alternative
to
the
integer
constants
such
as
:
const
:`
INFO
`.
..
method
::
Handler
.
setFormatter
(
form
)
...
...
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