Documentation
¶
Index ¶
- type Config
- type Interface
- 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) Interface
- 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 Writer
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Interface ¶
type Interface interface { LogMode(level logger.LogLevel) Interface Info(ctx context.Context, format string, args ...interface{}) Warn(ctx context.Context, format string, args ...interface{}) Error(ctx context.Context, format string, args ...interface{}) Trace(ctx context.Context, begin time.Time, fc func() (sql string, rowsAffected int64), err error) }
Interface logger interface
Click to show internal directories.
Click to hide internal directories.