Skip to content

fix attribute list and NOTSET description in docs #36

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 2 commits into from
Jul 12, 2022
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
20 changes: 10 additions & 10 deletions adafruit_logging.py
Original file line number Diff line number Diff line change
Expand Up @@ -31,25 +31,25 @@

Attributes
----------
LEVELS : list
LEVELS: list
A list of tuples representing the valid logging levels used by
this module. Each tuple contains exactly two elements: one int and one
str. The int in each tuple represents the relative severity of that
level (00 to 50). The str in each tuple is the string representation of
that logging level ("NOTSET" to "CRITICAL"; see below).
NOTSET : int
The NOTSET logging level, which is a dummy logging level that can be
used to indicate that a `Logger` should not print any logging messages,
regardless of how severe those messages might be (including CRITICAL).
DEBUG : int
NOTSET: int
The NOTSET logging level, which is the default logging level that can be
used to indicate that a `Logger` should process any logging messages,
regardless of how severe those messages are.
DEBUG: int
The DEBUG logging level, which is the lowest (least severe) real level.
INFO : int
INFO: int
The INFO logging level for informative/informational messages.
WARNING : int
WARNING: int
The WARNING logging level for warnings that should be addressed/fixed.
ERROR : int
ERROR: int
The ERROR logging level for Python exceptions that occur during runtime.
CRITICAL : int
CRITICAL: int
The CRITICAL logging level, which is the highest (most severe) level for
unrecoverable errors that have caused the code to halt and exit.

Expand Down