logging

package
v0.0.0-...-ff6eb74 Latest Latest
Warning

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

Go to latest
Published: Jan 12, 2023 License: Apache-2.0 Imports: 1 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Logger

type Logger interface {
	Debugf(format string, args ...interface{})
	Infof(format string, args ...interface{})
	Printf(format string, args ...interface{})
	Warnf(format string, args ...interface{})
	Warningf(format string, args ...interface{})
	Errorf(format string, args ...interface{})
	Fatalf(format string, args ...interface{})
	Panicf(format string, args ...interface{})

	Debug(args ...interface{})
	Info(args ...interface{})
	Print(args ...interface{})
	Warn(args ...interface{})
	Warning(args ...interface{})
	Error(args ...interface{})
	Fatal(args ...interface{})
	Panic(args ...interface{})
}

Logger is a default logger interface used in this package - somewhat between logrus.StdLogger and logrus.FieldLogger

type TestLogger

type TestLogger struct {
	// contains filtered or unexported fields
}

TestLogger implements a test wrapper for testing.T implementing Logger interface

func NewTestLogger

func NewTestLogger(t *testing.T) *TestLogger

NewTestLogger returns a new TestLogger

func (*TestLogger) Debug

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

Debug implements Logger interface

func (*TestLogger) Debugf

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

Debugf implements Logger interface

func (*TestLogger) Error

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

Error implements Logger interface

func (*TestLogger) Errorf

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

Errorf implements Logger interface

func (*TestLogger) Fatal

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

Fatal implements Logger interface

func (*TestLogger) Fatalf

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

Fatalf implements Logger interface

func (*TestLogger) Info

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

Info implements Logger interface

func (*TestLogger) Infof

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

Infof implements Logger interface

func (*TestLogger) Panic

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

Panic implements Logger interface

func (*TestLogger) Panicf

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

Panicf implements Logger interface

func (*TestLogger) Print

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

Print implements Logger interface

func (*TestLogger) Printf

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

Printf implements Logger interface

func (*TestLogger) Warn

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

Warn implements Logger interface

func (*TestLogger) Warnf

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

Warnf implements Logger interface

func (*TestLogger) Warning

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

Warning implements Logger interface

func (*TestLogger) Warningf

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

Warningf implements Logger interface

Jump to

Keyboard shortcuts

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