Documentation ¶
Index ¶
- type ILogger
- type JsonLogger
- func (log *JsonLogger) Debug(args ...interface{})
- func (log *JsonLogger) Debugf(template string, args ...interface{})
- func (log *JsonLogger) Debugw(template string, args ...interface{})
- func (log *JsonLogger) Error(args ...interface{})
- func (log *JsonLogger) Errorf(template string, args ...interface{})
- func (log *JsonLogger) Errorw(template string, args ...interface{})
- func (log *JsonLogger) Info(args ...interface{})
- func (log *JsonLogger) Infof(template string, args ...interface{})
- func (log *JsonLogger) Infow(template string, args ...interface{})
- func (log *JsonLogger) Warn(args ...interface{})
- func (log *JsonLogger) Warnf(template string, args ...interface{})
- func (log *JsonLogger) Warnw(template string, args ...interface{})
- type Logger
- func (log *Logger) Debug(args ...interface{})
- func (log *Logger) Debugf(template string, args ...interface{})
- func (log *Logger) Debugw(template string, args ...interface{})
- func (log *Logger) Error(args ...interface{})
- func (log *Logger) Errorf(template string, args ...interface{})
- func (log *Logger) Errorw(template string, args ...interface{})
- func (log *Logger) Info(args ...interface{})
- func (log *Logger) Infof(template string, args ...interface{})
- func (log *Logger) Infow(template string, args ...interface{})
- func (log *Logger) Warn(args ...interface{})
- func (log *Logger) Warnf(template string, args ...interface{})
- func (log *Logger) Warnw(template string, args ...interface{})
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type ILogger ¶ added in v0.0.8
type ILogger interface { Debug(args ...interface{}) Debugf(template string, args ...interface{}) Debugw(template string, args ...interface{}) Info(args ...interface{}) Infof(template string, args ...interface{}) Infow(template string, args ...interface{}) Warn(args ...interface{}) Warnf(template string, args ...interface{}) Warnw(template string, args ...interface{}) Error(args ...interface{}) Errorf(template string, args ...interface{}) Errorw(template string, args ...interface{}) }
type JsonLogger ¶ added in v0.0.10
type JsonLogger struct {
ZapSugared *zap.SugaredLogger
}
func NewJsonWithMsgKey ¶ added in v0.0.11
func (*JsonLogger) Debug ¶ added in v0.0.10
func (log *JsonLogger) Debug(args ...interface{})
func (*JsonLogger) Debugf ¶ added in v0.0.10
func (log *JsonLogger) Debugf(template string, args ...interface{})
func (*JsonLogger) Debugw ¶ added in v0.0.10
func (log *JsonLogger) Debugw(template string, args ...interface{})
func (*JsonLogger) Error ¶ added in v0.0.10
func (log *JsonLogger) Error(args ...interface{})
func (*JsonLogger) Errorf ¶ added in v0.0.10
func (log *JsonLogger) Errorf(template string, args ...interface{})
func (*JsonLogger) Errorw ¶ added in v0.0.10
func (log *JsonLogger) Errorw(template string, args ...interface{})
func (*JsonLogger) Info ¶ added in v0.0.10
func (log *JsonLogger) Info(args ...interface{})
func (*JsonLogger) Infof ¶ added in v0.0.10
func (log *JsonLogger) Infof(template string, args ...interface{})
func (*JsonLogger) Infow ¶ added in v0.0.10
func (log *JsonLogger) Infow(template string, args ...interface{})
func (*JsonLogger) Warn ¶ added in v0.0.10
func (log *JsonLogger) Warn(args ...interface{})
func (*JsonLogger) Warnf ¶ added in v0.0.10
func (log *JsonLogger) Warnf(template string, args ...interface{})
func (*JsonLogger) Warnw ¶ added in v0.0.10
func (log *JsonLogger) Warnw(template string, args ...interface{})
type Logger ¶ added in v0.0.2
type Logger struct {
ZapSugared *zap.SugaredLogger
}
Click to show internal directories.
Click to hide internal directories.