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:
1 parent
d62a9dba68
commit
41be4f9344
11 files changed
+60
-53
No files matched your search
@@ -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)
|
||||
}
|
||||
Reference in new issue
Block a user