Documentation ¶
Index ¶
- func SqlError2Error(err error) error
- type Logger
- func (l *Logger) Error(ctx context.Context, s string, i ...interface{})
- func (l *Logger) Info(ctx context.Context, s string, i ...interface{})
- func (l *Logger) LogMode(level glogger.LogLevel) glogger.Interface
- func (l *Logger) Trace(ctx context.Context, begin time.Time, ...)
- func (l *Logger) Warn(ctx context.Context, s string, i ...interface{})
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func SqlError2Error ¶
Types ¶
type Logger ¶
type Logger struct {
*zap.SugaredLogger
}
func NewDbLogger ¶
func NewDbLogger() *Logger
Click to show internal directories.
Click to hide internal directories.