logger

package
v0.9.5 Latest Latest
Warning

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

Go to latest
Published: Nov 23, 2017 License: GPL-3.0, GPL-3.0 Imports: 9 Imported by: 122

Documentation

Index

Constants

View Source
const (
	GaugeLogFileName = "gauge.log"
)

Variables

View Source
var APILog = logging.MustGetLogger("gauge-api")

APILog is for logging API related messages

View Source
var GaugeLog = logging.MustGetLogger("gauge")

GaugeLog is for logging messages related to spec execution lifecycle

Functions

func Debugf added in v0.9.0

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

Debugf logs DEBUG messages

func Errorf added in v0.3.2

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

Errorf logs ERROR messages

func Fatalf added in v0.3.2

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

Fatalf logs CRITICAL messages and exits

func GetLogFilePath added in v0.9.4

func GetLogFilePath(logFileName string) string

func HandleWarningMessages added in v0.1.7

func HandleWarningMessages(warnings []string)

HandleWarningMessages logs multiple messages in WARNING mode

func Infof added in v0.9.0

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

Infof logs INFO messages

func Initialize

func Initialize(logLevel string)

Initialize initializes the logger object

func SetCustomLogger added in v0.9.5

func SetCustomLogger(l CustomLogger)

func Warningf added in v0.9.0

func Warningf(msg string, args ...interface{})

Warningf logs WARNING messages

Types

type CustomLogger added in v0.9.5

type CustomLogger interface {
	Log(logLevel logging.Level, msg string)
}

Jump to

Keyboard shortcuts

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