Documentation ¶
Index ¶
- Constants
- Variables
- func InitFileLog(logPath ...string)
- func SetLogLevel(logLevel string)
- type Zap
- func (*Zap) Debug(args ...interface{})
- func (*Zap) DebugF(format string, args ...interface{})
- func (*Zap) Error(args ...interface{})
- func (*Zap) ErrorF(format string, args ...interface{})
- func (*Zap) Info(args ...interface{})
- func (*Zap) InfoF(format string, args ...interface{})
- func (*Zap) Warn(args ...interface{})
- func (*Zap) WarnF(format string, args ...interface{})
Constants ¶
View Source
const ( LogLevelInfo = "info" LogLevelDebug = "debug" LogLevelWarn = "warn" LogLevelError = "error" )
Variables ¶
View Source
var (
Sugar *zap.SugaredLogger
)
Functions ¶
func InitFileLog ¶
func InitFileLog(logPath ...string)
func SetLogLevel ¶
func SetLogLevel(logLevel string)
Types ¶
Click to show internal directories.
Click to hide internal directories.