Rework logging

This commit is contained in:
9seconds
2018-07-08 12:29:04 +03:00
parent 1fe3319988
commit 67151746b0
8 changed files with 68 additions and 149 deletions
+3 -5
View File
@@ -3,14 +3,12 @@ package wrappers
import (
"io"
"net"
"go.uber.org/zap"
)
type Wrap interface {
LogDebug(msg string, data ...interface{})
LogInfo(msg string, data ...interface{})
LogWarn(msg string, data ...interface{})
LogError(msg string, data ...interface{})
Logger() *zap.SugaredLogger
LocalAddr() *net.TCPAddr
RemoteAddr() *net.TCPAddr
}