Documentation
¶
Index ¶
- func Debug(msg string)
- func Debugf(f string, a ...any)
- func Debugw(msg string, f F, a ...any)
- func EnableColors(on bool)
- func EnableTimestamps(on bool)
- func Error(msg string)
- func Errorf(f string, a ...any)
- func Errorw(msg string, f F, a ...any)
- func Fatal(msg string)
- func Fatalf(f string, a ...any)
- func Fatalw(msg string, f F, a ...any)
- func Info(msg string)
- func Infof(f string, a ...any)
- func Infow(msg string, f F, a ...any)
- func SetJSON(on bool)
- func SetLevel(l Level)
- func SetOutput(w io.Writer)
- func SetTimeFormat(tf string)
- func ShowCaller(on bool)
- func Warn(msg string)
- func Warnf(f string, a ...any)
- func Warnw(msg string, f F, a ...any)
- type F
- type Level
- type Logger
- func (l *Logger) Debug(msg string)
- func (l *Logger) Debugf(f string, a ...any)
- func (l *Logger) Debugw(msg string, f F, a ...any)
- func (l *Logger) EnableColors(on bool)
- func (l *Logger) EnableTimestamps(on bool)
- func (l *Logger) Error(msg string)
- func (l *Logger) Errorf(f string, a ...any)
- func (l *Logger) Errorw(msg string, f F, a ...any)
- func (l *Logger) Fatal(msg string)
- func (l *Logger) Fatalf(f string, a ...any)
- func (l *Logger) Fatalw(msg string, f F, a ...any)
- func (l *Logger) Info(msg string)
- func (l *Logger) Infof(f string, a ...any)
- func (l *Logger) Infow(msg string, f F, a ...any)
- func (l *Logger) Log(level Level, msg string, extra F)
- func (l *Logger) SetJSON(on bool)
- func (l *Logger) SetLevel(level Level)
- func (l *Logger) SetLevelBgColor(level Level, bg string)
- func (l *Logger) SetLevelColor(level Level, fg string)
- func (l *Logger) SetOutput(w io.Writer)
- func (l *Logger) SetTimeFormat(tf string)
- func (l *Logger) ShowCaller(on bool)
- func (l *Logger) Warn(msg string)
- func (l *Logger) Warnf(f string, a ...any)
- func (l *Logger) Warnw(msg string, f F, a ...any)
- func (l *Logger) WithFields(f F) *Logger
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func EnableColors ¶
func EnableColors(on bool)
func EnableTimestamps ¶
func EnableTimestamps(on bool)
func SetTimeFormat ¶
func SetTimeFormat(tf string)
func ShowCaller ¶
func ShowCaller(on bool)
Types ¶
type Logger ¶
type Logger struct {
// contains filtered or unexported fields
}
func WithFields ¶
func (*Logger) EnableColors ¶
func (*Logger) EnableTimestamps ¶
func (*Logger) SetLevelBgColor ¶
func (*Logger) SetTimeFormat ¶
func (*Logger) ShowCaller ¶
func (*Logger) WithFields ¶
Click to show internal directories.
Click to hide internal directories.