logger

package
v0.9.0 Latest Latest
Warning

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

Go to latest
Published: Aug 16, 2020 License: Apache-2.0 Imports: 1 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func WrapLogger

func WrapLogger(s TestLogger) testLogWrapper

Types

type NoopLogger

type NoopLogger struct{}

func (*NoopLogger) Debugf

func (*NoopLogger) Debugf(template string, args ...interface{})

func (*NoopLogger) Errf

func (*NoopLogger) Errf(err error, template string, args ...interface{})

func (*NoopLogger) Errorf

func (*NoopLogger) Errorf(template string, args ...interface{})

func (*NoopLogger) Infof

func (*NoopLogger) Infof(template string, args ...interface{})

type TestLogger

type TestLogger interface {
	Helper()
	Log(args ...interface{})
	Logf(format string, args ...interface{})
	Error(args ...interface{})
	Errorf(format string, args ...interface{})
}

Jump to

Keyboard shortcuts

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