From 8d27daccc625f4badc06cd398f6fe2da76636482 Mon Sep 17 00:00:00 2001 From: kolaente Date: Thu, 20 Sep 2018 07:31:36 +0200 Subject: [PATCH] Fixed lint & fmt --- models/logging.go | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/models/logging.go b/models/logging.go index 409f836b..c392e766 100644 --- a/models/logging.go +++ b/models/logging.go @@ -5,15 +5,16 @@ import ( "os" ) +// Log is the handler for the logger var Log = logging.MustGetLogger("vikunja") var format = logging.MustStringFormatter( `%{color}%{time:15:04:05.000} %{shortfunc} ▶ %{level:.4s} %{id:03x}%{color:reset} %{message}`, ) +// InitLogger initializes the global log handler func InitLogger() { backend := logging.NewLogBackend(os.Stderr, "", 0) backendFormatter := logging.NewBackendFormatter(backend, format) logging.SetBackend(backendFormatter) } -