Processors
processors
#
CallPrettifier
#
ESTTimeStamper
#
A processor to add a timestamp in Eastern Standard Time to the event dictionary.
Example
est_stamper = ESTTimeStamper() event_dict = {} est_stamper(None, None, event_dict)
format for just time:
est_stamper = ESTTimeStamper(fmt="%H:%M:%S")
Source code in src/imgtools/loggers/processors.py
JSONFormatter
#
A processor to format the event dictionary for JSON output.
PathPrettifier
#
A processor to convert absolute paths to relative paths based on a base directory.
Args: base_dir (Optional[Path]): The base directory to which paths should be made relative. Defaults to the current working directory.