Versions in this module Expand all Collapse all v0 v0.1.0 Sep 28, 2021 Changes in this version + const DebugLevel + const ErrorLevel + const FatalLevel + const InfoLevel + const PanicLevel + const WarnLevel + var Any = zap.Any + var ByteString = zap.ByteString + var ConfigPrefix = constant.ConfigPrefix + ".logger" + var DefaultLogger = ...() + var Duration = zap.Duration + var Durationp = zap.Durationp + var Int = zap.Int + var Int32 = zap.Int32 + var Int64 = zap.Int64 + var Namespace = zap.Namespace + var Object = zap.Object + var OxLogger = ...() + var Reflect = zap.Reflect + var Skip = zap.Skip() + var String = zap.String + var Uint = zap.Uint + func ConfigEntry(name string) string + func DPanic(msg string, fields ...Field) + func DPanicf(msg string, args ...interface{}) + func DPanicw(msg string, keysAndValues ...interface{}) + func Debug(msg string, fields ...Field) + func DebugEncodeLevel(lv zapcore.Level, enc zapcore.PrimitiveArrayEncoder) + func Debugf(msg string, args ...interface{}) + func Debugw(msg string, keysAndValues ...interface{}) + func DefaultZapConfig() *zapcore.EncoderConfig + func Error(msg string, fields ...Field) + func Errorf(msg string, args ...interface{}) + func Errorw(msg string, keysAndValues ...interface{}) + func Fatal(msg string, fields ...Field) + func Fatalf(msg string, args ...interface{}) + func Fatalw(msg string, keysAndValues ...interface{}) + func Info(msg string, fields ...Field) + func Infof(msg string, args ...interface{}) + func Infow(msg string, keysAndValues ...interface{}) + func InjectTraceMD(ctx interface{ ... }, md *Tracer) + func NewContext(ctx context.Context, tracer Tracer) context.Context + func Panic(msg string, fields ...Field) + func Panicf(msg string, args ...interface{}) + func Panicw(msg string, keysAndValues ...interface{}) + func Warn(msg string, fields ...Field) + func Warnf(msg string, args ...interface{}) + func Warnw(msg string, keysAndValues ...interface{}) + type CloseFunc func() error + func Buffer(ws zapcore.WriteSyncer, bufferSize int, flushInterval time.Duration) (zapcore.WriteSyncer, CloseFunc) + type Config struct + AddCaller bool + Async bool + CallerSkip int + Core zapcore.Core + Debug bool + Dir string + EncoderConfig *zapcore.EncoderConfig + Fields []zap.Field + Interval time.Duration + Level string + MaxAge int + MaxBackup int + MaxSize int + Name string + Prefix string + Queue bool + QueueSleep time.Duration + func DefaultConfig() *Config + func RawConfig(key string) *Config + func StdConfig(name string) *Config + func (config *Config) Filename() string + func (config Config) Build() *Logger + type Field = zap.Field + func FieldAddr(value string) Field + func FieldAddrAny(value interface{}) Field + func FieldAid(value string) Field + func FieldCode(value int32) Field + func FieldCost(value time.Duration) Field + func FieldErr(err error) Field + func FieldErrKind(value string) Field + func FieldEvent(value string) Field + func FieldExtMessage(vals ...interface{}) Field + func FieldKey(value string) Field + func FieldKeyAny(value interface{}) Field + func FieldMethod(value string) Field + func FieldMod(value string) Field + func FieldName(value string) Field + func FieldStack(value []byte) Field + func FieldStringErr(err string) Field + func FieldType(value string) Field + func FieldValue(value string) Field + func FieldValueAny(value interface{}) Field + type Func func(string, ...zap.Field) + func Auto(err error) Func + func (fn Func) Log(msg string, fields ...Field) + type Level = zapcore.Level + type Logger struct + func With(fields ...Field) *Logger + func (logger *Logger) AutoLevel(confKey string) + func (logger *Logger) DPanic(msg string, fields ...Field) + func (logger *Logger) DPanicf(template string, args ...interface{}) + func (logger *Logger) DPanicw(msg string, keysAndValues ...interface{}) + func (logger *Logger) Debug(msg string, fields ...Field) + func (logger *Logger) Debugf(template string, args ...interface{}) + func (logger *Logger) Debugw(msg string, keysAndValues ...interface{}) + func (logger *Logger) Error(msg string, fields ...Field) + func (logger *Logger) Errorf(template string, args ...interface{}) + func (logger *Logger) Errorw(msg string, keysAndValues ...interface{}) + func (logger *Logger) Fatal(msg string, fields ...Field) + func (logger *Logger) Fatalf(template string, args ...interface{}) + func (logger *Logger) Fatalw(msg string, keysAndValues ...interface{}) + func (logger *Logger) Flush() error + func (logger *Logger) Info(msg string, fields ...Field) + func (logger *Logger) Infof(template string, args ...interface{}) + func (logger *Logger) Infow(msg string, keysAndValues ...interface{}) + func (logger *Logger) IsDebugMode() bool + func (logger *Logger) Panic(msg string, fields ...Field) + func (logger *Logger) Panicf(template string, args ...interface{}) + func (logger *Logger) Panicw(msg string, keysAndValues ...interface{}) + func (logger *Logger) SetLevel(lv Level) + func (logger *Logger) StdLog() *log.Logger + func (logger *Logger) Warn(msg string, fields ...Field) + func (logger *Logger) Warnf(template string, args ...interface{}) + func (logger *Logger) Warnw(msg string, keysAndValues ...interface{}) + func (logger *Logger) With(fields ...Field) *Logger + type Tracer struct + BeginTime time.Time + func ExtractTraceMD(ctx interface{ ... }) (md *Tracer, ok bool) + func NewTracer() *Tracer + func (t *Tracer) Error(fields ...Field) + func (t *Tracer) Flush(msg string, logger *Logger) + func (t *Tracer) Info(fields ...Field) + func (t *Tracer) Warn(fields ...Field)