Documentation ¶
Index ¶
- type Logger
- func (logger *Logger) Error(ctx context.Context, msg string, args ...interface{})
- func (logger *Logger) Info(ctx context.Context, msg string, args ...interface{})
- func (logger *Logger) LogMode(level gormlog.LogLevel) gormlog.Interface
- func (logger *Logger) Sync()
- func (logger *Logger) Trace(ctx context.Context, begin time.Time, ...)
- func (logger *Logger) Warn(ctx context.Context, msg string, args ...interface{})
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Logger ¶
type Logger struct {
// contains filtered or unexported fields
}
Logger gormlogger
func (*Logger) Sync ¶
func (logger *Logger) Sync()
Sync call defer logger.Sync() to empty the buffer
Click to show internal directories.
Click to hide internal directories.