logger

package
v1.6.0 Latest Latest
Warning

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

Go to latest
Published: Dec 17, 2016 License: MIT Imports: 1 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var LevelMatches = map[string]gologger.Level{
	"TRACE":    gologger.LevelTrace,
	"DEBUG":    gologger.LevelDebug,
	"INFO":     gologger.LevelInfo,
	"WARN":     gologger.LevelWarn,
	"ERROR":    gologger.LevelError,
	"CRITICAL": gologger.LevelCritical,
	"FATAL":    gologger.LevelFatal,
	"NONE":     gologger.LevelNone,
}

Functions

func SetLogFile

func SetLogFile(path string) error

SetLogFile sets the LogHandle to a io.writer created for the file behind the given file path. Will append to this file.

func SetLogFlag

func SetLogFlag(flag int)

SetLogFlag sets global log flag used in package.

func SetLogThreshold

func SetLogThreshold(level gologger.Level)

SetLogThreshold establishes a threshold where anything matching or above will be logged.

func SetStdoutThreshold

func SetStdoutThreshold(level gologger.Level)

SetStdoutThreshold establishes a threshold where anything matching or above will be output.

Types

This section is empty.

Jump to

Keyboard shortcuts

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