improved logging format

This commit is contained in:
kolaente 2018-10-05 18:49:56 +02:00
parent 6ea4f0598c
commit a1a77a9b75
No known key found for this signature in database
GPG key ID: F40E70337AB24C9B

View file

@ -9,7 +9,7 @@ import (
var Log = logging.MustGetLogger("vikunja")
var format = logging.MustStringFormatter(
`%{color}%{time:15:04:05.000} %{shortfunc} ▶ %{level:.4s} %{id:03x}%{color:reset} %{message}`,
`%{color}%{time:2006-01-02 15:04:05.000} %{shortfunc} ▶ %{level:.4s} %{id:03x}%{color:reset} %{message}`,
)
// InitLogger initializes the global log handler