Documentation ¶
Index ¶
- func LoggerWithZap(reg *register.Register)
- type ZapComponent
- func (z *ZapComponent) Debug(args string)
- func (z *ZapComponent) Debugf(format string, args ...interface{})
- func (z *ZapComponent) Error(args string)
- func (z *ZapComponent) Errorf(format string, args ...interface{})
- func (z *ZapComponent) Fatal(args string)
- func (z *ZapComponent) Fatalf(format string, args ...interface{})
- func (z *ZapComponent) Info(args string)
- func (z *ZapComponent) Infof(format string, args ...interface{})
- func (z *ZapComponent) Init() error
- func (z *ZapComponent) Name() string
- func (z *ZapComponent) Ready()
- func (z *ZapComponent) Warn(args string)
- func (z *ZapComponent) Warnf(format string, args ...interface{})
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func LoggerWithZap ¶
Types ¶
type ZapComponent ¶
type ZapComponent struct { DebugLog string `toml:"debug_log" json:"debug_log"` InfoLog string `toml:"info_log" json:"info_log"` WarnLog string `toml:"warn_log" json:"warn_log"` ErrLog string `toml:"err_log" json:"err_log"` MaxSize int `toml:"max_size" json:"max_size"` MaxAge int `toml:"max_age" json:"max_age"` MaxBackup int `toml:"max_backup" json:"max_backup"` Compress bool `toml:"compress" json:"compress"` Json bool `toml:"json" json:"json"` // contains filtered or unexported fields }
func (*ZapComponent) Debug ¶
func (z *ZapComponent) Debug(args string)
func (*ZapComponent) Debugf ¶
func (z *ZapComponent) Debugf(format string, args ...interface{})
func (*ZapComponent) Error ¶
func (z *ZapComponent) Error(args string)
func (*ZapComponent) Errorf ¶
func (z *ZapComponent) Errorf(format string, args ...interface{})
func (*ZapComponent) Fatal ¶
func (z *ZapComponent) Fatal(args string)
func (*ZapComponent) Fatalf ¶
func (z *ZapComponent) Fatalf(format string, args ...interface{})
func (*ZapComponent) Info ¶
func (z *ZapComponent) Info(args string)
func (*ZapComponent) Infof ¶
func (z *ZapComponent) Infof(format string, args ...interface{})
func (*ZapComponent) Init ¶
func (z *ZapComponent) Init() error
func (*ZapComponent) Name ¶
func (z *ZapComponent) Name() string
func (*ZapComponent) Ready ¶
func (z *ZapComponent) Ready()
func (*ZapComponent) Warn ¶
func (z *ZapComponent) Warn(args string)
func (*ZapComponent) Warnf ¶
func (z *ZapComponent) Warnf(format string, args ...interface{})
Click to show internal directories.
Click to hide internal directories.