Documentation ¶
Index ¶
- func DPanic(msg string, fields ...zap.Field)
- func DPanicf(template string, args ...interface{})
- func Debug(msg string, fields ...zap.Field)
- func Debugf(template string, args ...interface{})
- func Error(msg string, fields ...zap.Field)
- func Errorf(template string, args ...interface{})
- func Fatal(msg string, fields ...zap.Field)
- func Fatalf(template string, args ...interface{})
- func Info(msg string, fields ...zap.Field)
- func Infof(template string, args ...interface{})
- func Panic(msg string, fields ...zap.Field)
- func Panicf(template string, args ...interface{})
- func Use(opt *Option) error
- func UseCtxDecoder(decoder decoder.CtxDecoder)
- func Warn(msg string, fields ...zap.Field)
- func Warnf(template string, args ...interface{})
- type Logger
- func (log *Logger) DPanic(msg string, fields ...zap.Field)
- func (log *Logger) DPanicf(template string, args ...interface{})
- func (log *Logger) Debug(msg string, fields ...zap.Field)
- func (log *Logger) Debugf(template string, args ...interface{})
- func (log *Logger) Error(msg string, fields ...zap.Field)
- func (log *Logger) Errorf(template string, args ...interface{})
- func (log *Logger) Fatal(msg string, fields ...zap.Field)
- func (log *Logger) Fatalf(template string, args ...interface{})
- func (log *Logger) Info(msg string, fields ...zap.Field)
- func (log *Logger) Infof(template string, args ...interface{})
- func (log *Logger) Panic(msg string, fields ...zap.Field)
- func (log *Logger) Panicf(template string, args ...interface{})
- func (log *Logger) Warn(msg string, fields ...zap.Field)
- func (log *Logger) Warnf(template string, args ...interface{})
- func (log *Logger) With(fields ...zap.Field) *Logger
- func (log *Logger) WithContext(ctx context.Context) *Logger
- type Option
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func UseCtxDecoder ¶ added in v0.2.1
func UseCtxDecoder(decoder decoder.CtxDecoder)
Types ¶
type Logger ¶ added in v0.2.0
type Logger struct { decoder.CtxDecoder // contains filtered or unexported fields }
func WithContext ¶
type Option ¶ added in v0.2.0
type Option struct { LogSyncer []zapcore.WriteSyncer // lumberjack log rolling config. // to see more information about it, see its github(https://github.com/natefinch/lumberjack) RollingOption *lumberjack.Logger LogLevel string }
Click to show internal directories.
Click to hide internal directories.