tlo.logging.core module

disable(level)[source]
getLogger(name='tlo')[source]

Returns a TLO logger of the specified name

class Logger(name: str, level=0)[source]

Bases: object

A Logger for TLO log messages, with simplified usage. Outputs structured log messages in JSON format and is connected to the Simulation instance.

HASH_LEN = 10
property level
property handlers
addHandler(hdlr)[source]
isEnabledFor(level)[source]
reset_attributes()[source]

Reset logger attributes to an unset state

setLevel(level)[source]
critical(msg=None, *args, key: Optional[str] = None, data: Optional[Union[dict, pandas.core.frame.DataFrame, list, set, tuple, str]] = None, description=None, **kwargs)[source]
debug(msg=None, *args, key: Optional[str] = None, data: Optional[Union[dict, pandas.core.frame.DataFrame, list, set, tuple, str]] = None, description=None, **kwargs)[source]
info(msg=None, *args, key: Optional[str] = None, data: Optional[Union[dict, pandas.core.frame.DataFrame, list, set, tuple, str]] = None, description=None, **kwargs)[source]
warning(msg=None, *args, key: Optional[str] = None, data: Optional[Union[dict, pandas.core.frame.DataFrame, list, set, tuple, str]] = None, description=None, **kwargs)[source]