Documentation ¶
Index ¶
- Variables
- func Debug(args ...interface{})
- func Debugf(template string, args ...interface{})
- func Error(args ...interface{})
- func Errorf(template string, args ...interface{})
- func Fatal(args ...interface{})
- func Fatalf(template string, args ...interface{})
- func Info(args ...interface{})
- func Infof(template string, args ...interface{})
- func Init(serviceName string, logRedisAddr map[string]string)
- func Log(args ...interface{})
- func Logf(template string, args ...interface{})
- func NewRedisWriter(key string, cli *redis.Client) *redisWriter
- func Panic(args ...interface{})
- func Panicf(template string, args ...interface{})
- func Warn(args ...interface{})
- func Warnf(template string, args ...interface{})
- func With(args ...interface{})
- type XormLogger
- func (s *XormLogger) Debug(v ...interface{})
- func (s *XormLogger) Debugf(format string, v ...interface{})
- func (s *XormLogger) Error(v ...interface{})
- func (s *XormLogger) Errorf(format string, v ...interface{})
- func (s *XormLogger) Info(v ...interface{})
- func (s *XormLogger) Infof(format string, v ...interface{})
- func (s *XormLogger) IsShowSQL() bool
- func (s *XormLogger) Level() log.LogLevel
- func (s *XormLogger) SetLevel(l log.LogLevel)
- func (s *XormLogger) ShowSQL(show ...bool)
- func (s *XormLogger) Warn(v ...interface{})
- func (s *XormLogger) Warnf(format string, v ...interface{})
Constants ¶
This section is empty.
Variables ¶
View Source
var InnerLog *zap.Logger
Functions ¶
func NewRedisWriter ¶
Types ¶
type XormLogger ¶ added in v1.20.4
type XormLogger struct { Logger *zap.SugaredLogger // contains filtered or unexported fields }
func NewXormLogger ¶ added in v1.20.4
func NewXormLogger(innerLog *zap.SugaredLogger) *XormLogger
NewSimpleLogger use a special io.Writer as logger output
func (*XormLogger) Debug ¶ added in v1.20.4
func (s *XormLogger) Debug(v ...interface{})
Debug implement core.ILogger
func (*XormLogger) Debugf ¶ added in v1.20.4
func (s *XormLogger) Debugf(format string, v ...interface{})
Debugf implement core.ILogger
func (*XormLogger) Error ¶ added in v1.20.4
func (s *XormLogger) Error(v ...interface{})
Error implement core.ILogger
func (*XormLogger) Errorf ¶ added in v1.20.4
func (s *XormLogger) Errorf(format string, v ...interface{})
Errorf implement core.ILogger
func (*XormLogger) Info ¶ added in v1.20.4
func (s *XormLogger) Info(v ...interface{})
Info implement core.ILogger
func (*XormLogger) Infof ¶ added in v1.20.4
func (s *XormLogger) Infof(format string, v ...interface{})
Infof implement core.ILogger
func (*XormLogger) IsShowSQL ¶ added in v1.20.4
func (s *XormLogger) IsShowSQL() bool
IsShowSQL implement ILogger
func (*XormLogger) Level ¶ added in v1.20.4
func (s *XormLogger) Level() log.LogLevel
func (*XormLogger) SetLevel ¶ added in v1.20.4
func (s *XormLogger) SetLevel(l log.LogLevel)
SetLevel implement ILogger
func (*XormLogger) ShowSQL ¶ added in v1.20.4
func (s *XormLogger) ShowSQL(show ...bool)
ShowSQL implement ILogger
func (*XormLogger) Warn ¶ added in v1.20.4
func (s *XormLogger) Warn(v ...interface{})
Warn implement core.ILogger
func (*XormLogger) Warnf ¶ added in v1.20.4
func (s *XormLogger) Warnf(format string, v ...interface{})
Warnf implement core.ILogger
Click to show internal directories.
Click to hide internal directories.