assembl.lib.logging module

class assembl.lib.logging.ConsoleFormatter(foreign_pre_chain=None, keep_exc_info=False, keep_stack_info=False, *args, **kwargs)[source]

Bases: structlog.stdlib.ProcessorFormatter

format(record)[source]

Extract structlog’s event_dict from record.msg and format it.

record has been patched by wrap_for_formatter first though, so the

type isn’t quite right.

assembl.lib.logging.includeme(config)[source]

add request.logger