refactor: use a common logger for consistency

All kapow messages will end up in stderr (incl. debug mode).
stdout is reserved for the access logs.

Co-authored-by: Roberto Abdelkader Martínez Pérez <robertomartinezp@gmail.com>
This commit is contained in:
pancho horrilloandRoberto Abdelkader Martínez Pérez committed 2020-12-16 17:29:26 +01:00
1 parent d62a9dba68
commit 41be4f9344
11 files changed
+60 -53

No files matched your search

+12
View File
@@ -0,0 +1,12 @@
package logger
import (
"log"
"os"
)
var L *log.Logger
func init() {
L = log.New(os.Stderr, "", log.LstdFlags|log.Lmicroseconds|log.LUTC)
}