log

package
v0.11.0 Latest Latest
Warning

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

Go to latest
Published: Dec 10, 2018 License: MIT Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Debug

func Debug(v ...interface{})

Debug logs a message with severity DEBUG.

func Error

func Error(v ...interface{})

Error logs a message with severity ERROR.

func Fatal

func Fatal(v ...interface{})

Fatal logs a message with severity ERROR followed by a call to os.Exit().

func Info

func Info(v ...interface{})

Info logs a message with severity INFO.

func SetFormatter

func SetFormatter(format string)

SetFormatter sets the log formatter. Valid formatters are json and text.

func SetLevel

func SetLevel(level string) error

SetLevel sets the log level. Valid levels are panic, fatal, error, warn, info and debug.

func SetOutput

func SetOutput(path string) error

SetOutput sets the standard logger output to the given file.

func Warning

func Warning(v ...interface{})

Warning logs a message with severity WARNING.

func WithFields

func WithFields(fields log.Fields) *log.Entry

WithFields is a Wrapper for logrus.WithFields

Types

This section is empty.

Jump to

Keyboard shortcuts

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