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
3142c667
Commit
3142c667
authored
Oct 04, 2019
by
Ashley Whetter
Committed by
Vinay Sajip
Oct 04, 2019
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
bpo-38235: Correct some arguments names in logging documentation (GH-16571)
parent
f0c85793
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
17 additions
and
17 deletions
+17
-17
Doc/library/logging.rst
Doc/library/logging.rst
+17
-17
No files found.
Doc/library/logging.rst
View file @
3142c667
...
...
@@ -124,11 +124,11 @@ is the module's name in the Python package namespace.
:
meth
:`
isEnabledFor
`
will
return
/
expect
to
be
passed
integers
.
..
method
::
Logger
.
isEnabledFor
(
l
v
l
)
..
method
::
Logger
.
isEnabledFor
(
l
eve
l
)
Indicates
if
a
message
of
severity
*
l
v
l
*
would
be
processed
by
this
logger
.
Indicates
if
a
message
of
severity
*
l
eve
l
*
would
be
processed
by
this
logger
.
This
method
checks
first
the
module
-
level
level
set
by
``
logging
.
disable
(
l
v
l
)``
and
then
the
logger
's effective level as determined
``
logging
.
disable
(
l
eve
l
)``
and
then
the
logger
's effective level as determined
by :meth:`getEffectiveLevel`.
...
...
@@ -269,9 +269,9 @@ is the module's name in the Python package namespace.
interpreted as for :meth:`debug`.
.. method:: Logger.log(l
v
l, msg, *args, **kwargs)
.. method:: Logger.log(l
eve
l, msg, *args, **kwargs)
Logs a message with integer level *l
v
l* on this logger. The other arguments are
Logs a message with integer level *l
eve
l* on this logger. The other arguments are
interpreted as for :meth:`debug`.
...
...
@@ -333,7 +333,7 @@ is the module's name in the Python package namespace.
Logger-level filtering is applied using :meth:`~Logger.filter`.
.. method:: Logger.makeRecord(name, l
v
l, fn, lno, msg, args, exc_info, func=None, extra=None, sinfo=None)
.. method:: Logger.makeRecord(name, l
eve
l, fn, lno, msg, args, exc_info, func=None, extra=None, sinfo=None)
This is a factory method which can be overridden in subclasses to create
specialized :class:`LogRecord` instances.
...
...
@@ -1066,12 +1066,12 @@ functions.
handlers being added multiple times to the root logger, which can in turn
lead to multiple messages for the same event.
.. function:: disable(l
v
l=CRITICAL)
.. function:: disable(l
eve
l=CRITICAL)
Provides an overriding level *l
v
l* for all loggers which takes precedence over
Provides an overriding level *l
eve
l* for all loggers which takes precedence over
the logger'
s
own
level
.
When
the
need
arises
to
temporarily
throttle
logging
output
down
across
the
whole
application
,
this
function
can
be
useful
.
Its
effect
is
to
disable
all
logging
calls
of
severity
*
l
v
l
*
and
below
,
so
that
effect
is
to
disable
all
logging
calls
of
severity
*
l
eve
l
*
and
below
,
so
that
if
you
call
it
with
a
value
of
INFO
,
then
all
INFO
and
DEBUG
events
would
be
discarded
,
whereas
those
of
severity
WARNING
and
above
would
be
processed
according
to
the
logger
's effective level. If
...
...
@@ -1081,16 +1081,16 @@ functions.
Note that if you have defined any custom logging level higher than
``CRITICAL`` (this is not recommended), you won'
t
be
able
to
rely
on
the
default
value
for
the
*
l
v
l
*
parameter
,
but
will
have
to
explicitly
supply
a
default
value
for
the
*
l
eve
l
*
parameter
,
but
will
have
to
explicitly
supply
a
suitable
value
.
..
versionchanged
::
3.7
The
*
l
v
l
*
parameter
was
defaulted
to
level
``
CRITICAL
``.
See
Issue
The
*
l
eve
l
*
parameter
was
defaulted
to
level
``
CRITICAL
``.
See
Issue
#
28524
for
more
information
about
this
change
.
..
function
::
addLevelName
(
l
v
l
,
levelName
)
..
function
::
addLevelName
(
l
eve
l
,
levelName
)
Associates
level
*
l
v
l
*
with
text
*
levelName
*
in
an
internal
dictionary
,
which
is
Associates
level
*
l
eve
l
*
with
text
*
levelName
*
in
an
internal
dictionary
,
which
is
used
to
map
numeric
levels
to
a
textual
representation
,
for
example
when
a
:
class
:`
Formatter
`
formats
a
message
.
This
function
can
also
be
used
to
define
your
own
levels
.
The
only
constraints
are
that
all
levels
used
must
be
...
...
@@ -1100,15 +1100,15 @@ functions.
..
note
::
If
you
are
thinking
of
defining
your
own
levels
,
please
see
the
section
on
:
ref
:`
custom
-
levels
`.
..
function
::
getLevelName
(
l
v
l
)
..
function
::
getLevelName
(
l
eve
l
)
Returns
the
textual
representation
of
logging
level
*
l
v
l
*.
If
the
level
is
one
Returns
the
textual
representation
of
logging
level
*
l
eve
l
*.
If
the
level
is
one
of
the
predefined
levels
:
const
:`
CRITICAL
`,
:
const
:`
ERROR
`,
:
const
:`
WARNING
`,
:
const
:`
INFO
`
or
:
const
:`
DEBUG
`
then
you
get
the
corresponding
string
.
If
you
have
associated
levels
with
names
using
:
func
:`
addLevelName
`
then
the
name
you
have
associated
with
*
l
v
l
*
is
returned
.
If
a
numeric
value
corresponding
to
one
have
associated
with
*
l
eve
l
*
is
returned
.
If
a
numeric
value
corresponding
to
one
of
the
defined
levels
is
passed
in
,
the
corresponding
string
representation
is
returned
.
Otherwise
,
the
string
'Level %s'
%
l
v
l
is
returned
.
returned
.
Otherwise
,
the
string
'Level %s'
%
l
eve
l
is
returned
.
..
note
::
Levels
are
internally
integers
(
as
they
need
to
be
compared
in
the
logging
logic
).
This
function
is
used
to
convert
between
an
integer
level
...
...
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