Versions in this module Expand all Collapse all v1 v1.0.1 May 30, 2022 v1.0.0 May 31, 2022 Changes in this version + const DefaultCaller + const DefaultCataLog + const DefaultFileName + const DefaultLevel + const DefaultMaxAge + const DefaultMaxBackups + const DefaultMaxFileSize + const DefaultPath + func Debug(args ...interface{}) + func Debugf(template string, args ...interface{}) + func Debugw(msg string, keysAndValues ...interface{}) + func Error(args ...interface{}) + func Errorf(template string, args ...interface{}) + func Errorw(msg string, keysAndValues ...interface{}) + func Fatal(args ...interface{}) + func Fatalf(template string, args ...interface{}) + func Fatalw(msg string, keysAndValues ...interface{}) + func Info(args ...interface{}) + func Infof(template string, args ...interface{}) + func Infow(msg string, keysAndValues ...interface{}) + func Init(settings *LogSettings) error + func Panic(args ...interface{}) + func Panicf(template string, args ...interface{}) + func Panicw(msg string, keysAndValues ...interface{}) + func ParseLevel(lv string) (zapcore.Level, error) + func Sync() + func Warn(args ...interface{}) + func Warnf(template string, args ...interface{}) + func Warnw(msg string, keysAndValues ...interface{}) + type ILogger interface + Debug func(args ...interface{}) + Debugf func(template string, args ...interface{}) + Debugw func(msg string, keysAndValues ...interface{}) + Error func(args ...interface{}) + Errorf func(template string, args ...interface{}) + Errorw func(msg string, keysAndValues ...interface{}) + Fatal func(args ...interface{}) + Fatalf func(template string, args ...interface{}) + Fatalw func(msg string, keysAndValues ...interface{}) + Info func(args ...interface{}) + Infof func(template string, args ...interface{}) + Infow func(msg string, keysAndValues ...interface{}) + Panic func(args ...interface{}) + Panicf func(template string, args ...interface{}) + Panicw func(msg string, keysAndValues ...interface{}) + Warn func(args ...interface{}) + Warnf func(template string, args ...interface{}) + Warnw func(msg string, keysAndValues ...interface{}) + WithContext func(context xcontext.XContext) ILogger + WithFields func(args map[string]interface{}) ILogger + func WithContext(context xcontext.XContext) ILogger + type LogSettings struct + Caller bool + CataLog string + Compress bool + FileName string + Level string + MaxAge int + MaxBackups int + MaxFileSize int + Path string + type ZapAdapter struct + func NewZapAdapter(path string, level string, catalog string, maxFileSize, maxBackups, maxAge int) *ZapAdapter + func SetCataLog(catalog string, addCaller bool) *ZapAdapter + func WithCataLog(catalog string) *ZapAdapter + func (adapter *ZapAdapter) Build() + func (adapter *ZapAdapter) Debug(args ...interface{}) + func (adapter *ZapAdapter) Debugf(template string, args ...interface{}) + func (adapter *ZapAdapter) Debugw(msg string, keysAndValues ...interface{}) + func (adapter *ZapAdapter) Error(args ...interface{}) + func (adapter *ZapAdapter) Errorf(template string, args ...interface{}) + func (adapter *ZapAdapter) Errorw(msg string, keysAndValues ...interface{}) + func (adapter *ZapAdapter) Fatal(args ...interface{}) + func (adapter *ZapAdapter) Fatalf(template string, args ...interface{}) + func (adapter *ZapAdapter) Fatalw(msg string, keysAndValues ...interface{}) + func (adapter *ZapAdapter) Info(args ...interface{}) + func (adapter *ZapAdapter) Infof(template string, args ...interface{}) + func (adapter *ZapAdapter) Infow(msg string, keysAndValues ...interface{}) + func (adapter *ZapAdapter) Panic(args ...interface{}) + func (adapter *ZapAdapter) Panicf(template string, args ...interface{}) + func (adapter *ZapAdapter) Panicw(msg string, keysAndValues ...interface{}) + func (adapter *ZapAdapter) SetCataLog(catalog string) *zap.SugaredLogger + func (adapter *ZapAdapter) Warn(args ...interface{}) + func (adapter *ZapAdapter) Warnf(template string, args ...interface{}) + func (adapter *ZapAdapter) Warnw(msg string, keysAndValues ...interface{}) + func (adapter *ZapAdapter) With(args ...interface{}) ILogger + func (adapter *ZapAdapter) WithContext(ctx xcontext.XContext) ILogger + func (adapter *ZapAdapter) WithFields(args map[string]interface{}) ILogger