Documentation
¶
Index ¶
- type LogLevel
- type Logger
- func (l Logger) Debug(msg string)
- func (l Logger) Debugf(format string, args ...any)
- func (l Logger) Error(err error)
- func (l Logger) Errorf(format string, args ...any)
- func (l Logger) Info(msg string)
- func (l Logger) Infof(format string, args ...any)
- func (l Logger) Level() LogLevel
- func (l Logger) Writer() io.Writer
- type Loggeriface
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type LogLevel ¶
type LogLevel string
func ParseLevel ¶ added in v1.2.0
ParseLevel returns a LogLevel if found by string If not found will default to error possible values are `error`, `debug`, `info`
type Logger ¶
type Logger struct {
Loggeriface
// contains filtered or unexported fields
}
Click to show internal directories.
Click to hide internal directories.