Documentation ¶
Index ¶
- Constants
- Variables
- func InitFileLog(logPath ...string)
- func SetLogLevel(logLevel string)
- type Zap
- func (z *Zap) CommonLog(level logx.Level, ctx context.Context, keyvals ...interface{}) error
- func (*Zap) Debug(args ...interface{})
- func (*Zap) DebugF(format string, args ...interface{})
- func (*Zap) DebugW(keysAndValues ...interface{})
- func (*Zap) Error(args ...interface{})
- func (*Zap) ErrorF(format string, args ...interface{})
- func (*Zap) Fatal(args ...interface{})
- func (*Zap) FatalF(format string, args ...interface{})
- func (*Zap) Info(args ...interface{})
- func (*Zap) InfoF(format string, args ...interface{})
- func (*Zap) InfoW(keysAndValues ...interface{})
- func (*Zap) Warn(args ...interface{})
- func (*Zap) WarnF(format string, args ...interface{})
- func (*Zap) WarnW(keysAndValues ...interface{})
Constants ¶
View Source
const ( LogLevelInfo = "info" LogLevelDebug = "debug" LogLevelWarn = "warn" LogLevelError = "error" LogLevelFatal = "fatal" )
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.