Skip to content

Commit

Permalink
docs: add docstring for create_console_handler
Browse files Browse the repository at this point in the history
  • Loading branch information
kreczko committed Jun 12, 2024
1 parent 82af0fa commit e726118
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/fasthep_logging/_logging.py
Original file line number Diff line number Diff line change
Expand Up @@ -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"""

Expand Down Expand Up @@ -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,
Expand Down

0 comments on commit e726118

Please sign in to comment.