Better time format
This commit is contained in:
parent
3c06b3c741
commit
2b700ae192
1 changed files with 2 additions and 2 deletions
|
@ -34,7 +34,7 @@ const Version = "1.0.0"
|
||||||
|
|
||||||
func main() {
|
func main() {
|
||||||
log.Logger = zerolog.
|
log.Logger = zerolog.
|
||||||
New(zerolog.ConsoleWriter{Out: os.Stderr, TimeFormat: time.RFC3339}).
|
New(zerolog.ConsoleWriter{Out: os.Stderr, TimeFormat: time.DateTime}).
|
||||||
With().
|
With().
|
||||||
Timestamp().
|
Timestamp().
|
||||||
Logger().
|
Logger().
|
||||||
|
@ -75,7 +75,7 @@ func main() {
|
||||||
}
|
}
|
||||||
|
|
||||||
log.Logger = zerolog.
|
log.Logger = zerolog.
|
||||||
New(zerolog.ConsoleWriter{Out: os.Stderr, TimeFormat: time.RFC3339}).
|
New(zerolog.ConsoleWriter{Out: os.Stderr, TimeFormat: time.DateTime}).
|
||||||
With().
|
With().
|
||||||
Timestamp().
|
Timestamp().
|
||||||
Logger().
|
Logger().
|
||||||
|
|
Loading…
Reference in a new issue