From 8867e051d3a78e5ab68229f6903bb90a70170736 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jure=20=C5=A0orn?= Date: Sun, 2 Apr 2023 16:57:08 +0200 Subject: [PATCH] Logging --- README.md | 4 ++-- index.html | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/README.md b/README.md index 4b40a6f..2f6c996 100644 --- a/README.md +++ b/README.md @@ -2478,9 +2478,9 @@ logging.basicConfig( = logging.Formatter('') # Creates a Formatter. = logging.FileHandler() # Creates a Handler. .setFormatter() # Adds Formatter to the Handler. -.setLevel() # Processes all messages by default. +.setLevel() # Processes all messages by default. .addHandler() # Adds Handler to the Logger. -.setLevel() # What is sent to handlers and parents. +.setLevel() # What is sent to handlers and parent. ``` * **Parent logger can be specified by naming the child logger `'.'`.** * **Formatter also supports: pathname, filename, funcName, lineno, thread and process.** diff --git a/index.html b/index.html index c24a7d9..15a57ea 100644 --- a/index.html +++ b/index.html @@ -2032,9 +2032,9 @@ logging.debug/info/warning/error/critical(<str>) <Formatter> = logging.Formatter('<format>') # Creates a Formatter. <Handler> = logging.FileHandler(<path>) # Creates a Handler. <Handler>.setFormatter(<Formatter>) # Adds Formatter to the Handler. -<Handler>.setLevel(<str/int>) # Processes all messages by default. +<Handler>.setLevel(<int/str>) # Processes all messages by default. <Logger>.addHandler(<Handler>) # Adds Handler to the Logger. -<Logger>.setLevel(<str/int>) # What is sent to handlers and parents. +<Logger>.setLevel(<int/str>) # What is sent to handlers and parent.
  • Parent logger can be specified by naming the child logger '<parent>.<name>'.