log

package
v0.0.0-...-964918b Latest Latest
Warning

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

Go to latest
Published: Nov 7, 2016 License: Apache-2.0 Imports: 4 Imported by: 0

Documentation

Index

Constants

View Source
const (
	// DebugLevel is the level to print debug logs
	DebugLevel logrus.Level = logrus.DebugLevel
)

Variables

This section is empty.

Functions

func Debug

func Debug(args ...interface{})

Debug logs a message at level Debug on the standard logger.

func DebugWithFields

func DebugWithFields(l interface{}, f Fields)

DebugWithFields logs a message with fields at level Debug on the standard logger.

func Debugf

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

Debugf logs a message at level Debug on the standard logger.

func Error

func Error(args ...interface{})

Error logs a message at level Error on the standard logger.

func ErrorWithFields

func ErrorWithFields(l interface{}, f Fields)

ErrorWithFields logs a message at level Error on the standard logger.

func Errorf

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

Errorf logs a message at level Error on the standard logger.

func Fatal

func Fatal(args ...interface{})

Fatal logs a message at level Fatal on the standard logger.

func FatalWithFields

func FatalWithFields(l interface{}, f Fields)

FatalWithFields logs a message at level Fatal on the standard logger.

func Fatalf

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

Fatalf logs a message at level Fatal on the standard logger.

func Info

func Info(args ...interface{})

Info logs a message at level Info on the standard logger.

func InfoWithFields

func InfoWithFields(l interface{}, f Fields)

InfoWithFields logs a message at level Info on the standard logger.

func Infof

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

Infof logs a message at level Info on the standard logger.

func Panic

func Panic(args ...interface{})

Panic logs a message at level Panic on the standard logger.

func PanicWithFields

func PanicWithFields(l interface{}, f Fields)

PanicWithFields logs a message with fields at level Panic on the standard logger.

func SetLogFormatter

func SetLogFormatter(formatter logrus.Formatter)

SetLogFormatter sets the formatter of log

func SetLogLevel

func SetLogLevel(level logrus.Level)

SetLogLevel sets the level of log

func Warn

func Warn(args ...interface{})

Warn logs a message at level Warn on the standard logger.

func WarnWithFields

func WarnWithFields(l interface{}, f Fields)

WarnWithFields logs a message at level Warn on the standard logger.

func Warnf

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

Warnf logs a message at level Warn on the standard logger.

Types

type Fields

type Fields logrus.Fields

Fields wraps logrus.Fields, which is a map[string]interface{}

Jump to

Keyboard shortcuts

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