diff --git a/src/sysdiagnose/utils/jsonlogger.py b/src/sysdiagnose/utils/jsonlogger.py index 2036087..c9e99f6 100644 --- a/src/sysdiagnose/utils/jsonlogger.py +++ b/src/sysdiagnose/utils/jsonlogger.py @@ -6,4 +6,4 @@ class SysdiagnoseJsonFormatter(jsonlogger.JsonFormatter): '''Custom JSON logger formatter ''' # https://stackoverflow.com/questions/50873446/python-logger-output-dates-in-is8601-format def formatTime(self, record, datefmt=None): - return datetime.fromtimestamp(record.created).astimezone().isoformat(timespec='milliseconds') + return datetime.fromtimestamp(record.created).astimezone().isoformat(timespec='microseconds')