Better time format

This commit is contained in:
Gnarwhal 2024-10-02 03:35:30 +00:00
parent 3c06b3c741
commit 2b700ae192
Signed by: Gnarwhal
GPG key ID: 0989A73D8C421174

View file

@ -34,7 +34,7 @@ const Version = "1.0.0"
func main() {
log.Logger = zerolog.
New(zerolog.ConsoleWriter{Out: os.Stderr, TimeFormat: time.RFC3339}).
New(zerolog.ConsoleWriter{Out: os.Stderr, TimeFormat: time.DateTime}).
With().
Timestamp().
Logger().
@ -75,7 +75,7 @@ func main() {
}
log.Logger = zerolog.
New(zerolog.ConsoleWriter{Out: os.Stderr, TimeFormat: time.RFC3339}).
New(zerolog.ConsoleWriter{Out: os.Stderr, TimeFormat: time.DateTime}).
With().
Timestamp().
Logger().