Documentation
¶
Index ¶
- type Logger
- func (l *Logger) Close() error
- func (l *Logger) Debug(msg string)
- func (l *Logger) Debugf(format string, values ...any)
- func (l *Logger) Error(msg string)
- func (l *Logger) Errorf(format string, values ...any)
- func (l *Logger) Fatal(msg string)
- func (l *Logger) Fatalf(format string, values ...any)
- func (l *Logger) HasLvl(lvl logger.Level) bool
- func (l *Logger) Info(msg string)
- func (l *Logger) Infof(format string, values ...any)
- func (l *Logger) Print(values ...any)
- func (l *Logger) Printf(format string, values ...any)
- func (l *Logger) Println(values ...any)
- func (l *Logger) SetLvl(lvl logger.Level)
- func (l *Logger) Warn(msg string)
- func (l *Logger) Warnf(format string, values ...any)
- func (l *Logger) Write(data []byte) (int, error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Logger ¶
type Logger struct {
// contains filtered or unexported fields
}
Logger represents a logging object.
func (*Logger) HasLvl ¶
HasLvl checks if a log statement will be printed when sent with a specific level. This can and should be used to see if a log statment should be prepared at all.
Click to show internal directories.
Click to hide internal directories.