Documentation
¶
Index ¶
- func New() logger.Interface
- type Logger
- func (g *Logger) Error(ctx context.Context, s string, i ...interface{})
- func (g *Logger) Info(ctx context.Context, s string, i ...interface{})
- func (g *Logger) LogMode(level logger.LogLevel) logger.Interface
- func (g *Logger) Trace(ctx context.Context, begin time.Time, fc func() (string, int64), err error)
- func (g *Logger) Warn(ctx context.Context, s string, i ...interface{})
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type Logger ¶
type Logger struct{}
Logger A structure that implements gorm logger.Interface
func (*Logger) LogMode ¶
LogMode You cannot change the log level by calling LogMode You can only change the display level of the log through klog
Click to show internal directories.
Click to hide internal directories.