openstef.logging package

Submodules

openstef.logging.base_logger module

class openstef.logging.base_logger.BaseLogger

Bases: ABC

Abstract Base Logger Interface

abstract bind(**kwargs)
Return type:

BaseLogger

abstract debug(message, **kwargs)
Return type:

None

abstract error(message, **kwargs)
Return type:

None

abstract exception(message, **kwargs)
Return type:

None

abstract info(message, **kwargs)
Return type:

None

abstract warning(message, **kwargs)
Return type:

None

openstef.logging.logger_factory module

openstef.logging.logger_factory.get_logger(name, logger_type=LoggerType.STRUCTLOG)

openstef.logging.logger_types module

class openstef.logging.logger_types.LoggerType(value, names=None, *, module=None, qualname=None, type=None, start=1, boundary=None)

Bases: StrEnum

STANDARD = 'logging'
STRUCTLOG = 'structlog'

openstef.logging.standard_logger module

class openstef.logging.standard_logger.StandardLogger(name)

Bases: BaseLogger

bind(**kwargs)

Not implemented for StandardLogger

debug(message, **kwargs)
error(message, **kwargs)
exception(message, **kwargs)
info(message, **kwargs)
warning(message, **kwargs)

openstef.logging.structlog_logger module

class openstef.logging.structlog_logger.StructlogLogger(name)

Bases: BaseLogger

bind(**kwargs)
debug(message, **kwargs)
error(message, **kwargs)
exception(message, **kwargs)
info(message, **kwargs)
warning(message, **kwargs)

Module contents