Documentation ¶
Index ¶
- func SetDebug()
- func SetError()
- func SetOutput(out io.Writer)
- func SetSimpleFormat(trunc bool)
- type Logger
- func (l *Logger) Debugf(msg string, args ...any)
- func (l *Logger) Errorf(msg string, args ...any)
- func (l *Logger) Fatalf(msg string, args ...any)
- func (l *Logger) Fields(kv ...any) *Logger
- func (l *Logger) FieldsMap(kv map[string]any) *Logger
- func (l *Logger) Infof(msg string, args ...any)
- func (l *Logger) IsDebug() bool
- func (l *Logger) Tracef(msg string, args ...any)
- func (l *Logger) Warnf(msg string, args ...any)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func SetSimpleFormat ¶
func SetSimpleFormat(trunc bool)
Types ¶
type Logger ¶
type Logger struct {
// contains filtered or unexported fields
}
func NewWithFields ¶ added in v0.7.1
Click to show internal directories.
Click to hide internal directories.