stogger.processors¶
Processor factory functions.
Functions¶
|
Build a TimeStamper processor based on config.format.timestamp_precision. |
Module Contents¶
- stogger.processors.build_timestamp_processor(config)[source]¶
Build a TimeStamper processor based on config.format.timestamp_precision.
Central factory function for timestamp configuration. All TimeStamper call sites use this function to ensure consistent utc=True and correct fmt.
- Args:
config: A config object with a .format attribute containing FormatConfig.
- Returns:
A TimeStamper processor configured with the appropriate fmt and utc=True.
- Parameters:
config (stogger.config.StoggerConfig)
- Return type: