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
f40a4075
Commit
f40a4075
authored
Sep 18, 2014
by
Vinay Sajip
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Issue #22436: Improved documentation for getEffectiveLevel() and getLevelName().
parent
74012c17
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
9 additions
and
1 deletion
+9
-1
Doc/library/logging.rst
Doc/library/logging.rst
+9
-1
No files found.
Doc/library/logging.rst
View file @
f40a4075
...
...
@@ -130,7 +130,9 @@ is the module's name in the Python package namespace.
Indicates
the
effective
level
for
this
logger
.
If
a
value
other
than
:
const
:`
NOTSET
`
has
been
set
using
:
meth
:`
setLevel
`,
it
is
returned
.
Otherwise
,
the
hierarchy
is
traversed
towards
the
root
until
a
value
other
than
:
const
:`
NOTSET
`
is
found
,
and
that
value
is
returned
.
:
const
:`
NOTSET
`
is
found
,
and
that
value
is
returned
.
The
value
returned
is
an
integer
,
typically
one
of
:
const
:`
logging
.
DEBUG
`,
:
const
:`
logging
.
INFO
`
etc
.
..
method
::
Logger
.
getChild
(
suffix
)
...
...
@@ -898,6 +900,12 @@ functions.
of
the
defined
levels
is
passed
in
,
the
corresponding
string
representation
is
returned
.
Otherwise
,
the
string
"Level %s"
%
lvl
is
returned
.
..
note
::
Integer
levels
should
be
used
when
e
.
g
.
setting
levels
on
instances
of
:
class
:`
Logger
`
and
handlers
.
This
function
is
used
to
convert
between
an
integer
level
and
the
level
name
displayed
in
the
formatted
log
output
by
means
of
the
``%(
levelname
)
s
``
format
specifier
(
see
:
ref
:`
logrecord
-
attributes
`).
..
function
::
makeLogRecord
(
attrdict
)
...
...
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