Documentation ¶
Index ¶
- type NilLogger
- func (l *NilLogger) Debug(args ...interface{})
- func (l *NilLogger) Debugf(format string, args ...interface{})
- func (l *NilLogger) Debugln(args ...interface{})
- func (l *NilLogger) Error(args ...interface{})
- func (l *NilLogger) Errorf(format string, args ...interface{})
- func (l *NilLogger) Errorln(args ...interface{})
- func (l *NilLogger) Fatal(args ...interface{})
- func (l *NilLogger) Fatalf(format string, args ...interface{})
- func (l *NilLogger) Fatalln(args ...interface{})
- func (l *NilLogger) GetLevel() logger.Level
- func (l *NilLogger) Info(args ...interface{})
- func (l *NilLogger) Infof(format string, args ...interface{})
- func (l *NilLogger) Infoln(args ...interface{})
- func (l *NilLogger) Log(level logger.Level, args ...interface{})
- func (l *NilLogger) Logf(level logger.Level, format string, args ...interface{})
- func (l *NilLogger) Logln(level logger.Level, args ...interface{})
- func (l *NilLogger) Panic(args ...interface{})
- func (l *NilLogger) Panicf(format string, args ...interface{})
- func (l *NilLogger) Panicln(args ...interface{})
- func (l *NilLogger) Print(args ...interface{})
- func (l *NilLogger) Printf(format string, args ...interface{})
- func (l *NilLogger) Println(args ...interface{})
- func (l *NilLogger) SetLevel(level logger.Level)
- func (l *NilLogger) Warn(args ...interface{})
- func (l *NilLogger) Warnf(format string, args ...interface{})
- func (l *NilLogger) Warning(args ...interface{})
- func (l *NilLogger) Warningf(format string, args ...interface{})
- func (l *NilLogger) Warningln(args ...interface{})
- func (l *NilLogger) Warnln(args ...interface{})
- type TestLogger
- func (tl *TestLogger) Debug(args ...interface{})
- func (tl *TestLogger) Debugf(format string, args ...interface{})
- func (tl *TestLogger) Debugln(args ...interface{})
- func (tl *TestLogger) Error(args ...interface{})
- func (tl *TestLogger) Errorf(format string, args ...interface{})
- func (tl *TestLogger) Errorln(args ...interface{})
- func (tl *TestLogger) Fatal(args ...interface{})
- func (tl *TestLogger) Fatalf(format string, args ...interface{})
- func (tl *TestLogger) Fatalln(args ...interface{})
- func (tl *TestLogger) GetLevel() logger.Level
- func (tl *TestLogger) Info(args ...interface{})
- func (tl *TestLogger) Infof(format string, args ...interface{})
- func (tl *TestLogger) Infoln(args ...interface{})
- func (tl *TestLogger) Log(level logger.Level, args ...interface{})
- func (tl *TestLogger) Logf(level logger.Level, format string, args ...interface{})
- func (tl *TestLogger) Logln(level logger.Level, args ...interface{})
- func (tl *TestLogger) Panic(args ...interface{})
- func (tl *TestLogger) Panicf(format string, args ...interface{})
- func (tl *TestLogger) Panicln(args ...interface{})
- func (tl *TestLogger) Print(args ...interface{})
- func (tl *TestLogger) Printf(format string, args ...interface{})
- func (tl *TestLogger) Println(args ...interface{})
- func (tl *TestLogger) SetLevel(level logger.Level)
- func (tl *TestLogger) Warn(args ...interface{})
- func (tl *TestLogger) Warnf(format string, args ...interface{})
- func (tl *TestLogger) Warning(args ...interface{})
- func (tl *TestLogger) Warningf(format string, args ...interface{})
- func (tl *TestLogger) Warningln(args ...interface{})
- func (tl *TestLogger) Warnln(args ...interface{})
- type ZapNopLogger
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type TestLogger ¶
type TestLogger struct { Level logger.Level InfoLogs []string DebugLogs []string ErrorLogs []string WarnLogs []string // contains filtered or unexported fields }
func NewTestLogger ¶
func NewTestLogger(level logger.Level) *TestLogger
func (*TestLogger) Debug ¶
func (tl *TestLogger) Debug(args ...interface{})
func (*TestLogger) Debugf ¶
func (tl *TestLogger) Debugf(format string, args ...interface{})
func (*TestLogger) Debugln ¶
func (tl *TestLogger) Debugln(args ...interface{})
func (*TestLogger) Error ¶
func (tl *TestLogger) Error(args ...interface{})
func (*TestLogger) Errorf ¶
func (tl *TestLogger) Errorf(format string, args ...interface{})
func (*TestLogger) Errorln ¶
func (tl *TestLogger) Errorln(args ...interface{})
func (*TestLogger) Fatal ¶
func (tl *TestLogger) Fatal(args ...interface{})
func (*TestLogger) Fatalf ¶
func (tl *TestLogger) Fatalf(format string, args ...interface{})
func (*TestLogger) Fatalln ¶
func (tl *TestLogger) Fatalln(args ...interface{})
func (*TestLogger) GetLevel ¶
func (tl *TestLogger) GetLevel() logger.Level
func (*TestLogger) Info ¶
func (tl *TestLogger) Info(args ...interface{})
func (*TestLogger) Infof ¶
func (tl *TestLogger) Infof(format string, args ...interface{})
func (*TestLogger) Infoln ¶
func (tl *TestLogger) Infoln(args ...interface{})
func (*TestLogger) Log ¶
func (tl *TestLogger) Log(level logger.Level, args ...interface{})
func (*TestLogger) Logf ¶
func (tl *TestLogger) Logf(level logger.Level, format string, args ...interface{})
func (*TestLogger) Logln ¶
func (tl *TestLogger) Logln(level logger.Level, args ...interface{})
func (*TestLogger) Panic ¶
func (tl *TestLogger) Panic(args ...interface{})
func (*TestLogger) Panicf ¶
func (tl *TestLogger) Panicf(format string, args ...interface{})
func (*TestLogger) Panicln ¶
func (tl *TestLogger) Panicln(args ...interface{})
func (*TestLogger) Print ¶
func (tl *TestLogger) Print(args ...interface{})
func (*TestLogger) Printf ¶
func (tl *TestLogger) Printf(format string, args ...interface{})
func (*TestLogger) Println ¶
func (tl *TestLogger) Println(args ...interface{})
func (*TestLogger) SetLevel ¶
func (tl *TestLogger) SetLevel(level logger.Level)
func (*TestLogger) Warn ¶
func (tl *TestLogger) Warn(args ...interface{})
func (*TestLogger) Warnf ¶
func (tl *TestLogger) Warnf(format string, args ...interface{})
func (*TestLogger) Warning ¶
func (tl *TestLogger) Warning(args ...interface{})
func (*TestLogger) Warningf ¶
func (tl *TestLogger) Warningf(format string, args ...interface{})
func (*TestLogger) Warningln ¶
func (tl *TestLogger) Warningln(args ...interface{})
func (*TestLogger) Warnln ¶
func (tl *TestLogger) Warnln(args ...interface{})
type ZapNopLogger ¶
ZapNopLogger is no-op StructuredLogger.
func NewZapNopLogger ¶
func NewZapNopLogger() *ZapNopLogger
NewZapNopLogger returns a no-op StructuredLogger.
func (*ZapNopLogger) GetLevel ¶
func (z *ZapNopLogger) GetLevel() zapcore.Level
func (*ZapNopLogger) With ¶
func (z *ZapNopLogger) With(fields ...zap.Field) logger.StructuredLogger
With creates a child logger and adds structured context to it. Fields added to the child don't affect the parent, and vice versa.
Click to show internal directories.
Click to hide internal directories.