Documentation
¶
Index ¶
- func Debug(args ...any)
- func Debugf(format string, args ...any)
- func Error(args ...any)
- func Errorf(format string, args ...any)
- func Fatal(args ...any)
- func Fatalf(format string, args ...any)
- func SetVerbose()
- func Warn(args ...any)
- func Warnf(format string, args ...any)
- type Base
- type Logger
- func (l *Logger) Debug(args ...any)
- func (l *Logger) Debugf(format string, args ...any)
- func (l *Logger) Error(args ...any)
- func (l *Logger) Errorf(format string, args ...any)
- func (l *Logger) Fatal(args ...any)
- func (l *Logger) Fatalf(format string, args ...any)
- func (l *Logger) SetLevel(v level.Level)
- func (l *Logger) Warn(args ...any)
- func (l *Logger) Warnf(format string, args ...any)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func SetVerbose ¶
func SetVerbose()
Types ¶
type Logger ¶
type Logger struct {
// contains filtered or unexported fields
}
Logger logs message to io.Writer at various log levels.
func NewLogger ¶
NewLogger creates and returns a new instance of Logger. Log level is set to DebugLevel by default.
Click to show internal directories.
Click to hide internal directories.