Skip to content

log

Logging of the package, rendered with rich.

get_logger

get_logger(name, level=INFO)

Get the logger for the given name, logging via the shared console.

The rich handler is added once, so repeated calls for the same name do not duplicate the output.

Parameters:

Name Type Description Default
name str

name of the logger, typically __name__ of the module.

required
level int

logging level of the logger.

INFO

Returns:

Type Description
Logger

The configured logger.