Documentation ¶
Index ¶
- type ElapsedTimeFunc
- type ErrorFunc
- type Logger
- func (l *Logger) Error(ctx context.Context, msg string, data ...interface{})
- func (l *Logger) Info(ctx context.Context, msg string, data ...interface{})
- func (l *Logger) LogMode(level logger.LogLevel) logger.Interface
- func (l *Logger) SetElapsedTimeFunc(fn ElapsedTimeFunc) *Logger
- func (l *Logger) SetErrorFunc(fn ErrorFunc) *Logger
- func (l *Logger) SetSqlRowFunc(fn SqlRowFunc) *Logger
- func (l *Logger) Trace(ctx context.Context, begin time.Time, fc func() (string, int64), err error)
- func (l *Logger) Warn(ctx context.Context, msg string, data ...interface{})
- type Logging
- type SqlRowFunc
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type ElapsedTimeFunc ¶
type Logger ¶
type Logger struct { Logging // contains filtered or unexported fields }
func (*Logger) SetElapsedTimeFunc ¶
func (l *Logger) SetElapsedTimeFunc(fn ElapsedTimeFunc) *Logger
func (*Logger) SetErrorFunc ¶
func (*Logger) SetSqlRowFunc ¶
func (l *Logger) SetSqlRowFunc(fn SqlRowFunc) *Logger
type SqlRowFunc ¶
Click to show internal directories.
Click to hide internal directories.