Standarlized Log Timeformat

This commit is contained in:
Ryananana 2024-05-21 00:15:45 +08:00
parent 3f9dd9719f
commit 3f63369eed
No known key found for this signature in database
GPG Key ID: 67D3453C0C0D27C0

View File

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