From 1e05e2891e85be9f23178b5b2f289debb5874398 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jure=20=C5=A0orn?= Date: Fri, 10 Feb 2023 23:08:39 +0100 Subject: [PATCH] Logging --- README.md | 6 +++--- index.html | 6 +++--- 2 files changed, 6 insertions(+), 6 deletions(-) diff --git a/README.md b/README.md index 9ec8269..82b4529 100644 --- a/README.md +++ b/README.md @@ -2456,9 +2456,9 @@ import logging ```python logging.basicConfig(filename=) # Configures the root logger. logging.debug/info/warning/error/critical() # Logs to the root logger. - = logging.getLogger(__name__) # Creates a logger named after the module. -.() # All messages propagate to the root logger. -.exception() # Appends caught exception and calls error(). + = logging.getLogger(__name__) # Logger named after the module. +.() # Messages propagate to the root logger. +.exception() # Calls error() with caught exception. ``` ### Setup diff --git a/index.html b/index.html index cada0af..04b36dd 100644 --- a/index.html +++ b/index.html @@ -2014,9 +2014,9 @@ print(table)
logging.basicConfig(filename=<path>)              # Configures the root logger.
 logging.debug/info/warning/error/critical(<str>)  # Logs to the root logger.
-<Logger> = logging.getLogger(__name__)            # Creates a logger named after the module.
-<Logger>.<level>(<str>)                           # All messages propagate to the root logger.
-<Logger>.exception(<str>)                         # Appends caught exception and calls error().
+<Logger> = logging.getLogger(__name__)            # Logger named after the module.
+<Logger>.<level>(<str>)                           # Messages propagate to the root logger.
+<Logger>.exception(<str>)                         # Calls error() with caught exception.
 

Setup

logging.basicConfig(
     filename=None,                                # Logs to console by default.