Module

utils.logger

Minimal logging utilities for Patitas.

Provides a simple get_logger function that wraps the standard library logging.

Example:

>>> from patitas.utils.logger import get_logger
>>> logger = get_logger(__name__)
>>> logger.info("Parsing document")

Functions

get_logger 1 logging.Logger
Get a logger for the given name. Returns a standard library logger with the "p…
def get_logger(name: str) -> logging.Logger

Get a logger for the given name.

Returns a standard library logger with the "patitas." prefix.

Parameters
Name Type Description
name str

Logger name (typically name)

Returns
logging.Logger