From e7261188f042d6f72ce32bf89fb950ff6cfbf380 Mon Sep 17 00:00:00 2001 From: kreczko Date: Wed, 12 Jun 2024 16:00:07 +0100 Subject: [PATCH] docs: add docstring for create_console_handler --- src/fasthep_logging/_logging.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/fasthep_logging/_logging.py b/src/fasthep_logging/_logging.py index ef6cd2e..7816ccc 100644 --- a/src/fasthep_logging/_logging.py +++ b/src/fasthep_logging/_logging.py @@ -19,6 +19,7 @@ _lock = threading.RLock() + def log_function_factory(custom_log_level: int) -> Any: """Factory function for creating a function that logs at a custom level""" @@ -76,6 +77,7 @@ def format(self, record: logging.LogRecord) -> str: def create_console_handler(default_level: int = logging.INFO) -> RichHandler: + """Create a RichHandler for logging to console with custom formatting.""" console_handler = RichHandler( # rich_tracebacks=True, # does not work with custom formatters markup=True,