Documentation ¶
Index ¶
- func Debug(v ...any)
- func Debugf(format string, v ...any)
- func Error(v ...any)
- func Errorf(format string, v ...any)
- func Fatal(v ...any)
- func Fatalf(format string, v ...any)
- func Info(v ...any)
- func Infof(format string, v ...any)
- func RegisterLogger(l Logger)
- func SetLogLevel(level LogLevel)
- func SetOutput(w io.Writer)
- func Trace(v ...any)
- func Tracef(format string, v ...any)
- func Warn(v ...any)
- func Warnf(format string, v ...any)
- type EmptyLogger
- func (l *EmptyLogger) Debug(v ...any)
- func (l *EmptyLogger) Debugf(format string, v ...any)
- func (l *EmptyLogger) Error(v ...any)
- func (l *EmptyLogger) Errorf(format string, v ...any)
- func (l *EmptyLogger) Fatal(v ...any)
- func (l *EmptyLogger) Fatalf(format string, v ...any)
- func (l *EmptyLogger) Info(v ...any)
- func (l *EmptyLogger) Infof(format string, v ...any)
- func (l *EmptyLogger) SetLogLevel(LogLevel)
- func (l *EmptyLogger) SetOutput(w io.Writer)
- func (l *EmptyLogger) Trace(v ...any)
- func (l *EmptyLogger) Tracef(format string, v ...any)
- func (l *EmptyLogger) Warn(v ...any)
- func (l *EmptyLogger) Warnf(format string, v ...any)
- type LogLevel
- type Logger
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func RegisterLogger ¶
func RegisterLogger(l Logger)
func SetLogLevel ¶
func SetLogLevel(level LogLevel)
Types ¶
type EmptyLogger ¶
type EmptyLogger struct{}
func (*EmptyLogger) Debug ¶
func (l *EmptyLogger) Debug(v ...any)
func (*EmptyLogger) Debugf ¶
func (l *EmptyLogger) Debugf(format string, v ...any)
func (*EmptyLogger) Error ¶
func (l *EmptyLogger) Error(v ...any)
func (*EmptyLogger) Errorf ¶
func (l *EmptyLogger) Errorf(format string, v ...any)
func (*EmptyLogger) Fatal ¶
func (l *EmptyLogger) Fatal(v ...any)
func (*EmptyLogger) Fatalf ¶
func (l *EmptyLogger) Fatalf(format string, v ...any)
func (*EmptyLogger) Info ¶
func (l *EmptyLogger) Info(v ...any)
func (*EmptyLogger) Infof ¶
func (l *EmptyLogger) Infof(format string, v ...any)
func (*EmptyLogger) SetLogLevel ¶
func (l *EmptyLogger) SetLogLevel(LogLevel)
func (*EmptyLogger) SetOutput ¶
func (l *EmptyLogger) SetOutput(w io.Writer)
func (*EmptyLogger) Trace ¶
func (l *EmptyLogger) Trace(v ...any)
func (*EmptyLogger) Tracef ¶
func (l *EmptyLogger) Tracef(format string, v ...any)
func (*EmptyLogger) Warn ¶
func (l *EmptyLogger) Warn(v ...any)
func (*EmptyLogger) Warnf ¶
func (l *EmptyLogger) Warnf(format string, v ...any)
type LogLevel ¶
type LogLevel int
LogLevel how much log to dump 0: ALL; 1: INFO; 2: WARN; 3: ERROR; 4: FATAL; 5: OFF
type Logger ¶
type Logger interface { Fatal(v ...any) Fatalf(format string, v ...any) Error(v ...any) Errorf(format string, v ...any) Warn(v ...any) Warnf(format string, v ...any) Info(v ...any) Infof(format string, v ...any) Debug(v ...any) Debugf(format string, v ...any) Trace(v ...any) Tracef(format string, v ...any) SetLogLevel(level LogLevel) SetOutput(io.Writer) }
Click to show internal directories.
Click to hide internal directories.