Skip to content

Logging setup

FORMAT = '%(levelname)s:%(asctime)s:%(name)s:%(lineno)s||| %(message)s' module-attribute

SET_DEBUG = [] module-attribute

SET_INFO = [] module-attribute

CustomFormatter

Bases: Formatter

FORMATS = _make_formats() class-attribute instance-attribute

format(record)

RichStream

Bases: Console

write(msg)

get_logger(name)

init_logging(filepath)