|
38 | 38 | level (00 to 50). The str in each tuple is the string representation of
|
39 | 39 | that logging level ("NOTSET" to "CRITICAL"; see below).
|
40 | 40 | NOTSET: int
|
41 |
| - The NOTSET logging level, which is the default logging level that can be |
42 |
| - used to indicate that a `Logger` should process any logging messages, |
43 |
| - regardless of how severe those messages are. |
| 41 | + The NOTSET logging level can be used to indicate that a `Logger` should |
| 42 | + process any logging messages, regardless of how severe those messages are. |
44 | 43 | DEBUG: int
|
45 | 44 | The DEBUG logging level, which is the lowest (least severe) real level.
|
46 | 45 | INFO: int
|
47 | 46 | The INFO logging level for informative/informational messages.
|
48 | 47 | WARNING: int
|
49 |
| - The WARNING logging level for warnings that should be addressed/fixed. |
| 48 | + The WARNING logging level, which is the default logging level, for warnings |
| 49 | + that should be addressed/fixed. |
50 | 50 | ERROR: int
|
51 | 51 | The ERROR logging level for Python exceptions that occur during runtime.
|
52 | 52 | CRITICAL: int
|
@@ -268,10 +268,10 @@ class Logger:
|
268 | 268 |
|
269 | 269 | :param Hashable name: The name of the logger, typically assigned by the
|
270 | 270 | value from `getLogger`; this is typically a ``str``
|
271 |
| - :param int level: (optional) The log level, default is ``NOTSET`` |
| 271 | + :param int level: (optional) The log level, default is ``WARNING`` |
272 | 272 | """
|
273 | 273 |
|
274 |
| - def __init__(self, name: Hashable, level: int = NOTSET) -> None: |
| 274 | + def __init__(self, name: Hashable, level: int = WARNING) -> None: |
275 | 275 | """Create an instance."""
|
276 | 276 | self._level = level
|
277 | 277 | self.name = name
|
|
0 commit comments