@@ -124,11 +124,11 @@ is the module's name in the Python package namespace.
124
124
:meth: `isEnabledFor ` will return/expect to be passed integers.
125
125
126
126
127
- .. method :: Logger.isEnabledFor(lvl )
127
+ .. method :: Logger.isEnabledFor(level )
128
128
129
- Indicates if a message of severity *lvl * would be processed by this logger.
129
+ Indicates if a message of severity *level * would be processed by this logger.
130
130
This method checks first the module-level level set by
131
- ``logging.disable(lvl ) `` and then the logger's effective level as determined
131
+ ``logging.disable(level ) `` and then the logger's effective level as determined
132
132
by :meth: `getEffectiveLevel `.
133
133
134
134
@@ -258,9 +258,9 @@ is the module's name in the Python package namespace.
258
258
interpreted as for :meth: `debug `.
259
259
260
260
261
- .. method :: Logger.log(lvl , msg, *args, **kwargs)
261
+ .. method :: Logger.log(level , msg, *args, **kwargs)
262
262
263
- Logs a message with integer level *lvl * on this logger. The other arguments are
263
+ Logs a message with integer level *level * on this logger. The other arguments are
264
264
interpreted as for :meth: `debug `.
265
265
266
266
@@ -315,7 +315,7 @@ is the module's name in the Python package namespace.
315
315
Logger-level filtering is applied using :meth: `~Logger.filter `.
316
316
317
317
318
- .. method :: Logger.makeRecord(name, lvl , fn, lno, msg, args, exc_info, func=None, extra=None, sinfo=None)
318
+ .. method :: Logger.makeRecord(name, level , fn, lno, msg, args, exc_info, func=None, extra=None, sinfo=None)
319
319
320
320
This is a factory method which can be overridden in subclasses to create
321
321
specialized :class: `LogRecord ` instances.
@@ -1041,12 +1041,12 @@ functions.
1041
1041
handlers being added multiple times to the root logger, which can in turn
1042
1042
lead to multiple messages for the same event.
1043
1043
1044
- .. function :: disable(lvl =CRITICAL)
1044
+ .. function :: disable(level =CRITICAL)
1045
1045
1046
- Provides an overriding level *lvl * for all loggers which takes precedence over
1046
+ Provides an overriding level *level * for all loggers which takes precedence over
1047
1047
the logger's own level. When the need arises to temporarily throttle logging
1048
1048
output down across the whole application, this function can be useful. Its
1049
- effect is to disable all logging calls of severity *lvl * and below, so that
1049
+ effect is to disable all logging calls of severity *level * and below, so that
1050
1050
if you call it with a value of INFO, then all INFO and DEBUG events would be
1051
1051
discarded, whereas those of severity WARNING and above would be processed
1052
1052
according to the logger's effective level. If
@@ -1056,16 +1056,16 @@ functions.
1056
1056
1057
1057
Note that if you have defined any custom logging level higher than
1058
1058
``CRITICAL `` (this is not recommended), you won't be able to rely on the
1059
- default value for the *lvl * parameter, but will have to explicitly supply a
1059
+ default value for the *level * parameter, but will have to explicitly supply a
1060
1060
suitable value.
1061
1061
1062
1062
.. versionchanged :: 3.7
1063
- The *lvl * parameter was defaulted to level ``CRITICAL ``. See Issue
1063
+ The *level * parameter was defaulted to level ``CRITICAL ``. See Issue
1064
1064
#28524 for more information about this change.
1065
1065
1066
- .. function :: addLevelName(lvl , levelName)
1066
+ .. function :: addLevelName(level , levelName)
1067
1067
1068
- Associates level *lvl * with text *levelName * in an internal dictionary, which is
1068
+ Associates level *level * with text *levelName * in an internal dictionary, which is
1069
1069
used to map numeric levels to a textual representation, for example when a
1070
1070
:class: `Formatter ` formats a message. This function can also be used to define
1071
1071
your own levels. The only constraints are that all levels used must be
@@ -1075,15 +1075,15 @@ functions.
1075
1075
.. note :: If you are thinking of defining your own levels, please see the
1076
1076
section on :ref: `custom-levels `.
1077
1077
1078
- .. function :: getLevelName(lvl )
1078
+ .. function :: getLevelName(level )
1079
1079
1080
- Returns the textual representation of logging level *lvl *. If the level is one
1080
+ Returns the textual representation of logging level *level *. If the level is one
1081
1081
of the predefined levels :const: `CRITICAL `, :const: `ERROR `, :const: `WARNING `,
1082
1082
:const: `INFO ` or :const: `DEBUG ` then you get the corresponding string. If you
1083
1083
have associated levels with names using :func: `addLevelName ` then the name you
1084
- have associated with *lvl * is returned. If a numeric value corresponding to one
1084
+ have associated with *level * is returned. If a numeric value corresponding to one
1085
1085
of the defined levels is passed in, the corresponding string representation is
1086
- returned. Otherwise, the string 'Level %s' % lvl is returned.
1086
+ returned. Otherwise, the string 'Level %s' % level is returned.
1087
1087
1088
1088
.. note :: Levels are internally integers (as they need to be compared in the
1089
1089
logging logic). This function is used to convert between an integer level
0 commit comments