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