logger

package
v0.3.1 Latest Latest
Warning

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

Go to latest
Published: Jun 25, 2020 License: MIT Imports: 5 Imported by: 0

Documentation

Index

Constants

View Source
const (
	DebugLevel = "debug"
	InfoLevel  = "info"
	ErrorLevel = "error"
)

Variables

This section is empty.

Functions

func Debugf

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

func Errorf

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

func InfoDump added in v0.1.2

func InfoDump(v interface{})

func Infof

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

func Setup

func Setup(out io.Writer, minLevel string)

Types

type TestingLogWriter

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

func NewTestingLogWriter

func NewTestingLogWriter(t *testing.T) *TestingLogWriter

func (*TestingLogWriter) Write

func (w *TestingLogWriter) Write(bs []byte) (int, error)

Jump to

Keyboard shortcuts

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