logger

package
v0.0.0-...-a51ba30 Latest Latest
Warning

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

Go to latest
Published: Sep 12, 2018 License: GPL-3.0 Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Debug

func Debug(line string, params ...interface{})

Debug log to debug level

func Error

func Error(line string, params ...interface{})

Error log to error level

func ErrorAndExit

func ErrorAndExit(line string, params ...interface{})

func Info

func Info(line string, params ...interface{})

Info log to info level

func Initialize

func Initialize()

Initialize loggers for each level

func StubLogger

func StubLogger()

StubLogger sends all logs to /dev/null

func Warn

func Warn(line string, params ...interface{})

Warn log to warn level

Types

type LogOutput

type LogOutput struct {
	Lines []string
}

LogOutput store the log output as an array of lines

func TestLogger

func TestLogger() *LogOutput

TestLogger applies a test logger to allow fetching of logoutput during tests

func (*LogOutput) Write

func (logoutput *LogOutput) Write(p []byte) (int, error)

Jump to

Keyboard shortcuts

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