waft.configuration.custom_log_formatter module¶
- class waft.configuration.custom_log_formatter.CustomLogFormatter(fmt=None, datefmt=None, style='%', validate=True, *, defaults=None)¶
Bases:
Formatter
Custom logging formatter to include ISO 8601 timestamps with milliseconds and append ‘Z’ which indicates the time is in UTC.
This is to match the exact format of the ZT Client’s daemon logs.
- converter()¶
- gmtime([seconds]) -> (tm_year, tm_mon, tm_mday, tm_hour, tm_min,
tm_sec, tm_wday, tm_yday, tm_isdst)
Convert seconds since the Epoch to a time tuple expressing UTC (a.k.a. GMT). When ‘seconds’ is not passed in, convert the current time instead.
If the platform supports the tm_gmtoff and tm_zone, they are available as attributes only.
- formatTime(record, datefmt=None)¶
Override this method in the Formatter to create our special timestamp