Skip to content

module llutil.logging

logging utilities.


function get_logger

get_logger(name: Optional[str] = None)

set up a simple logger that writes into stderr.

The loglevel is fetched from the LOGLEVEL env. variable or WARNING as default. The function will use the module name of the caller if no name is provided.

Args:

  • name: Name of the logger. If no name provided, the name will be derived from the call stack.