testlogger

package
v0.0.0-...-54413df Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Feb 19, 2024 License: Apache-2.0 Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type NilLogger

type NilLogger struct {
}

func (*NilLogger) Debug

func (l *NilLogger) Debug(args ...interface{})

func (*NilLogger) Debugf

func (l *NilLogger) Debugf(format string, args ...interface{})

func (*NilLogger) Debugln

func (l *NilLogger) Debugln(args ...interface{})

func (*NilLogger) Error

func (l *NilLogger) Error(args ...interface{})

func (*NilLogger) Errorf

func (l *NilLogger) Errorf(format string, args ...interface{})

func (*NilLogger) Errorln

func (l *NilLogger) Errorln(args ...interface{})

func (*NilLogger) Fatal

func (l *NilLogger) Fatal(args ...interface{})

func (*NilLogger) Fatalf

func (l *NilLogger) Fatalf(format string, args ...interface{})

func (*NilLogger) Fatalln

func (l *NilLogger) Fatalln(args ...interface{})

func (*NilLogger) GetLevel

func (l *NilLogger) GetLevel() logger.Level

func (*NilLogger) Info

func (l *NilLogger) Info(args ...interface{})

func (*NilLogger) Infof

func (l *NilLogger) Infof(format string, args ...interface{})

func (*NilLogger) Infoln

func (l *NilLogger) Infoln(args ...interface{})

func (*NilLogger) Log

func (l *NilLogger) Log(level logger.Level, args ...interface{})

func (*NilLogger) Logf

func (l *NilLogger) Logf(level logger.Level, format string, args ...interface{})

func (*NilLogger) Logln

func (l *NilLogger) Logln(level logger.Level, args ...interface{})

func (*NilLogger) Panic

func (l *NilLogger) Panic(args ...interface{})

func (*NilLogger) Panicf

func (l *NilLogger) Panicf(format string, args ...interface{})

func (*NilLogger) Panicln

func (l *NilLogger) Panicln(args ...interface{})

func (*NilLogger) Print

func (l *NilLogger) Print(args ...interface{})

func (*NilLogger) Printf

func (l *NilLogger) Printf(format string, args ...interface{})

func (*NilLogger) Println

func (l *NilLogger) Println(args ...interface{})

func (*NilLogger) SetLevel

func (l *NilLogger) SetLevel(level logger.Level)

func (*NilLogger) Warn

func (l *NilLogger) Warn(args ...interface{})

func (*NilLogger) Warnf

func (l *NilLogger) Warnf(format string, args ...interface{})

func (*NilLogger) Warning

func (l *NilLogger) Warning(args ...interface{})

func (*NilLogger) Warningf

func (l *NilLogger) Warningf(format string, args ...interface{})

func (*NilLogger) Warningln

func (l *NilLogger) Warningln(args ...interface{})

func (*NilLogger) Warnln

func (l *NilLogger) Warnln(args ...interface{})

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

type ZapNopLogger struct {
	*zap.Logger
	// contains filtered or unexported fields
}

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.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL