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 horrillo
2020-12-16 17:29:26 +01:00
parent d62a9dba68
commit 41be4f9344
11 changed files with 60 additions and 53 deletions
+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)
}