stogger.factory

Factory functions for building stogger components.

Attributes

log

Functions

build_shared_processors(config)

Builds processors that are shared between sync and async modes.

build_renderer(config)

Builds the final renderer based on the log format.

configure_stdlib_logging(config, processors)

Configures the standard Python logging library.

Module Contents

stogger.factory.log
stogger.factory.build_shared_processors(config)[source]

Builds processors that are shared between sync and async modes.

Parameters:

config (stogger.config.StoggerConfig)

Return type:

list[Any]

stogger.factory.build_renderer(config)[source]

Builds the final renderer based on the log format.

Parameters:

config (stogger.config.StoggerConfig)

Return type:

stogger.core.ConsoleFileRenderer | stogger.core.JSONRenderer

stogger.factory.configure_stdlib_logging(config, processors)[source]

Configures the standard Python logging library.

Parameters:
Return type:

None