Documentation ¶
Index ¶
- Variables
- func Error(v ...any)
- func Errorf(format string, v ...any)
- func Fatal(v ...any)
- func Fatalf(format string, v ...any)
- func Info(v ...any)
- func Infof(format string, v ...any)
- func Panic(v ...any)
- func Panicf(format string, v ...any)
- func Warning(v ...any)
- func Warningf(format string, v ...any)
- func WithContext(ctx context.Context) log.Logger
- type Log
- func (l *Log) Debug(v ...any)
- func (l *Log) Debugf(format string, v ...any)
- func (l *Log) Error(v ...any)
- func (l *Log) Errorf(format string, v ...any)
- func (l *Log) Fatal(v ...any)
- func (l *Log) Fatalf(format string, v ...any)
- func (l *Log) Info(v ...any)
- func (l *Log) Infof(format string, v ...any)
- func (l *Log) LogLevel() log.Level
- func (l *Log) Panic(v ...any)
- func (l *Log) Panicf(format string, v ...any)
- func (l *Log) Warn(v ...any)
- func (l *Log) Warnf(format string, v ...any)
- func (l *Log) WithContext(ctx context.Context) log.Logger
Constants ¶
This section is empty.
Variables ¶
var DefaultLogger = New(log.DebugLevel, os.Stdout, os.Stderr)
DefaultLogger represents the default Log to use This Log wraps zap under the hood
DiscardLogger is used not log anything
Functions ¶
Types ¶
type Log ¶
Log implements Logger interface with the underlying zap as the underlying logging library
func (*Log) Fatal ¶
Fatal starts a new message with fatal level. The os.Exit(1) function is called which terminates the program immediately.
func (*Log) Fatalf ¶
Fatalf starts a new message with fatal level. The os.Exit(1) function is called which terminates the program immediately.
func (*Log) Panic ¶
Panic starts a new message with panic level. The panic() function is called which stops the ordinary flow of a goroutine.
func (*Log) Panicf ¶
Panicf starts a new message with panic level. The panic() function is called which stops the ordinary flow of a goroutine.