From 5efaa9ad46d7342848828258c73424bc8bcd27b6 Mon Sep 17 00:00:00 2001 From: foamyguy Date: Mon, 11 Jul 2022 16:03:19 -0500 Subject: [PATCH 1/2] fix attribute list in docs --- adafruit_logging.py | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) diff --git a/adafruit_logging.py b/adafruit_logging.py index a3a5858..666dc24 100644 --- a/adafruit_logging.py +++ b/adafruit_logging.py @@ -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 + 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 + 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. From 20caee5c755becf4567c28c6d001aeaf5b575adc Mon Sep 17 00:00:00 2001 From: foamyguy Date: Mon, 11 Jul 2022 17:06:35 -0500 Subject: [PATCH 2/2] fix NOTSET description to match CPython --- adafruit_logging.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/adafruit_logging.py b/adafruit_logging.py index 666dc24..af9330e 100644 --- a/adafruit_logging.py +++ b/adafruit_logging.py @@ -38,9 +38,9 @@ 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). + 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