stogger.factory¶
Factory functions for building stogger components.
Attributes¶
Functions¶
|
Builds processors that are shared between sync and async modes. |
|
Builds the final renderer based on the log format. |
|
Configures the standard Python logging library. |
Module Contents¶
- stogger.factory.log¶
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:
config (stogger.config.StoggerConfig)
processors (list[Any])
- Return type:
None