Chore: Use ISO8601 Timestamp Format in Logs

This commit is contained in:
Ryananana 2024-03-04 11:32:33 +08:00
parent f0463a2182
commit 24cfb1f4ce

View File

@ -47,7 +47,7 @@ func New(options Options) (Factory, error) {
DisableColors: logOptions.DisableColor || logFilePath != "",
DisableTimestamp: !logOptions.Timestamp && logFilePath != "",
FullTimestamp: logOptions.Timestamp,
TimestampFormat: "-0700 2006-01-02 15:04:05",
TimestampFormat: "2006-01-02T15:04:05-0700",
}
factory := NewDefaultFactory(
options.Context,