logger

package
v1.0.0 Latest Latest
Warning

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

Go to latest
Published: Feb 4, 2016 License: Apache-2.0, MIT Imports: 1 Imported by: 0

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