Documentation
¶
Index ¶
- func SetLevel(levelStr string)
- type Logger
- type ZLogger
- func (l ZLogger) Error(ctx context.Context, msg string, opts ...interface{})
- func (l ZLogger) Info(ctx context.Context, msg string, opts ...interface{})
- func (l ZLogger) LogMode(logger.LogLevel) logger.Interface
- func (l ZLogger) Trace(ctx context.Context, begin time.Time, f func() (string, int64), err error)
- func (l ZLogger) Warn(ctx context.Context, msg string, opts ...interface{})
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type Logger ¶
type Logger struct{}
Logger is a wrapper for zerolog
func (*Logger) Debug ¶
func (l *Logger) Debug(args ...interface{})
Debug logs a message at Debug level.
func (*Logger) Error ¶
func (l *Logger) Error(args ...interface{})
Error logs a message at Error level.
Click to show internal directories.
Click to hide internal directories.