Documentation
¶
Index ¶
- Constants
- func Debug(msg interface{})
- func DebugDo(f func())
- func Debugf(format string, msg ...interface{})
- func Error(msg interface{})
- func Errorf(format string, msg ...interface{})
- func Info(msg interface{})
- func Infof(format string, msg ...interface{})
- func IsDebug() bool
- func Warn(msg interface{})
- func Warnf(format string, msg ...interface{})
- type CustomLogger
- func (l *CustomLogger) Error(ctx context.Context, s string, i ...interface{})
- func (l *CustomLogger) Info(ctx context.Context, s string, i ...interface{})
- func (l *CustomLogger) LogMode(level logger.LogLevel) logger.Interface
- func (l *CustomLogger) Trace(ctx context.Context, begin time.Time, ...)
- func (l *CustomLogger) Warn(ctx context.Context, s string, i ...interface{})
Constants ¶
View Source
const ( LevelDebug = "Debug" LevelInfo = "Info" LevelWarn = "Warn" LevelError = "Error" )
Variables ¶
This section is empty.
Functions ¶
Types ¶
type CustomLogger ¶ added in v0.2.21
type CustomLogger struct {
}
func (*CustomLogger) Error ¶ added in v0.2.21
func (l *CustomLogger) Error(ctx context.Context, s string, i ...interface{})
func (*CustomLogger) Info ¶ added in v0.2.21
func (l *CustomLogger) Info(ctx context.Context, s string, i ...interface{})
func (*CustomLogger) LogMode ¶ added in v0.2.21
func (l *CustomLogger) LogMode(level logger.LogLevel) logger.Interface
Click to show internal directories.
Click to hide internal directories.