logger

package
v1.30.0 Latest Latest
Warning

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

Go to latest
Published: Apr 13, 2018 License: Apache-2.0 Imports: 1 Imported by: 7 modules, 8 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Error

func Error(args ...interface{})

func Errorf

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

func Fatal

func Fatal(args ...interface{})

func Fatalf

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

func Log

func Log(args ...interface{})

func Logf

func Logf(format string, args ...interface{})

func SetLogger

func SetLogger(l Logger)

func Skip

func Skip(args ...interface{})

func Skipf

func Skipf(format string, args ...interface{})

Types

type DefaultLogger

type DefaultLogger struct{}

Compatibility type to forward messages to Go's log package

func (DefaultLogger) Error

func (dl DefaultLogger) Error(args ...interface{})

func (DefaultLogger) Errorf

func (dl DefaultLogger) Errorf(format string, args ...interface{})

func (DefaultLogger) Fatal

func (dl DefaultLogger) Fatal(args ...interface{})

func (DefaultLogger) Fatalf

func (dl DefaultLogger) Fatalf(format string, args ...interface{})

func (DefaultLogger) Log

func (dl DefaultLogger) Log(args ...interface{})

func (DefaultLogger) Logf

func (dl DefaultLogger) Logf(format string, args ...interface{})

func (DefaultLogger) Skip

func (dl DefaultLogger) Skip(args ...interface{})

func (DefaultLogger) Skipf

func (dl DefaultLogger) Skipf(format string, args ...interface{})

type Logger

type Logger interface {
	Error(args ...interface{})
	Errorf(format string, args ...interface{})
	Fatal(args ...interface{})
	Fatalf(format string, args ...interface{})
	Log(args ...interface{})
	Logf(format string, args ...interface{})
	Skip(args ...interface{})
	Skipf(format string, args ...interface{})
}

Logger mimics golang's testing logging functionality as an interface.

Jump to

Keyboard shortcuts

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