log

package
v1.1.0 Latest Latest
Warning

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

Go to latest
Published: Aug 29, 2018 License: MIT Imports: 2 Imported by: 16

Documentation

Index

Constants

This section is empty.

Variables

View Source
var Logger loggers.Contextual

Logger is an Contextual logger interface.

Functions

func Debug

func Debug(v ...interface{})

Debug should be used when logging exessive debug info.

func Debugf

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

Debugf works the same as Debug but supports formatting.

func Debugln

func Debugln(v ...interface{})

Debugln works the same as Debug but supports formatting.

func Error

func Error(v ...interface{})

Error should be used only if real error occures.

func Errorf

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

Errorf works the same as Error but supports formatting.

func Errorln

func Errorln(v ...interface{})

Errorln works the same as Error but prints each value on a line.

func Fatal

func Fatal(v ...interface{})

Fatal should be only used when it's not possible to continue program execution.

func Fatalf

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

Fatalf works the same as Fatal but supports formatting.

func Fatalln

func Fatalln(v ...interface{})

Fatalln works the same as Fatal but prints each value on a line.

func Info

func Info(v ...interface{})

Info is a general function to log something.

func Infof

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

Infof works the same as Info but supports formatting.

func Infoln

func Infoln(v ...interface{})

Infoln works the same as Info but supports formatting.

func Panic

func Panic(v ...interface{})

Panic should be used only if real panic is desired.

func Panicf

func Panicf(format string, v ...interface{})

Panicf works the same as Panic but supports formatting.

func Panicln

func Panicln(v ...interface{})

Panicln works the same as Panic but prints each value on a line.

func Print

func Print(v ...interface{})

Print should be used for information messages.

func Printf

func Printf(format string, v ...interface{})

Printf works the same as Print but supports formatting.

func Println

func Println(v ...interface{})

Println works the same as Print but prints each value on a line.

func Warn

func Warn(v ...interface{})

Warn is useful for alerting about something wrong.

func Warnf

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

Warnf works the same as Warn but supports formatting.

func Warnln

func Warnln(v ...interface{})

Warnln works the same as Warn but prints each value on a line.

func WithField

func WithField(key string, value interface{}) loggers.Advanced

WithField adds the key value as parameter to log.

func WithFields

func WithFields(fields ...interface{}) loggers.Advanced

WithFields adds the fields as a list of key/value parameters to log. Even number expected.

Types

This section is empty.

Jump to

Keyboard shortcuts

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