Documentation ¶
Index ¶
- type XormZapLogger
- func (zl *XormZapLogger) AfterSQL(ctx log.LogContext)
- func (zl *XormZapLogger) BeforeSQL(_ log.LogContext)
- func (zl *XormZapLogger) Debugf(format string, v ...interface{})
- func (zl *XormZapLogger) Errorf(format string, v ...interface{})
- func (zl *XormZapLogger) Infof(format string, v ...interface{})
- func (zl *XormZapLogger) IsShowSQL() bool
- func (zl *XormZapLogger) Level() log.LogLevel
- func (zl *XormZapLogger) SetLevel(l log.LogLevel)
- func (zl *XormZapLogger) ShowSQL(b ...bool)
- func (zl *XormZapLogger) Warnf(format string, v ...interface{})
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type XormZapLogger ¶
type XormZapLogger struct {
// contains filtered or unexported fields
}
func NewXormZapLogger ¶
func NewXormZapLogger(zl *zap.Logger) *XormZapLogger
func (*XormZapLogger) AfterSQL ¶
func (zl *XormZapLogger) AfterSQL(ctx log.LogContext)
func (*XormZapLogger) BeforeSQL ¶
func (zl *XormZapLogger) BeforeSQL(_ log.LogContext)
func (*XormZapLogger) Debugf ¶
func (zl *XormZapLogger) Debugf(format string, v ...interface{})
func (*XormZapLogger) Errorf ¶
func (zl *XormZapLogger) Errorf(format string, v ...interface{})
func (*XormZapLogger) Infof ¶
func (zl *XormZapLogger) Infof(format string, v ...interface{})
func (*XormZapLogger) IsShowSQL ¶
func (zl *XormZapLogger) IsShowSQL() bool
func (*XormZapLogger) Level ¶
func (zl *XormZapLogger) Level() log.LogLevel
func (*XormZapLogger) SetLevel ¶
func (zl *XormZapLogger) SetLevel(l log.LogLevel)
func (*XormZapLogger) ShowSQL ¶
func (zl *XormZapLogger) ShowSQL(b ...bool)
func (*XormZapLogger) Warnf ¶
func (zl *XormZapLogger) Warnf(format string, v ...interface{})
Click to show internal directories.
Click to hide internal directories.