logging

package
v0.0.0-...-f3a18e2 Latest Latest
Warning

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

Go to latest
Published: Dec 14, 2019 License: MIT Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Debug

func Debug(msg string)

Debug overrides equivalent logrus's func

func Error

func Error(trace string, err error)

Error overrides equivalent logrus's func

func Fatal

func Fatal(args ...interface{})

Fatal overrides equivalent logrus's func

func Info

func Info(msg string)

Info overrides equivalent logrus's func

func Infof

func Infof(msg string)

Infof overrides equivalent logrus's func

func Printf

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

Printf overrides equivalent logrus's func

func Println

func Println(args ...interface{})

Println overrides equivalent logrus's func

func SetLogLevel

func SetLogLevel(level int)

SetLogLevel manually override loglevel

func StripSpecialChars

func StripSpecialChars(s string) string

StripSpecialChars strips newlines and tabs from a string

func Trace

func Trace() (line string)

Trace returns the source code line and function name (of the calling function)

func WithError

func WithError(err error) *logrus.Entry

WithError overrides equivalent logrus's func

func WithField

func WithField(key string, value interface{}) *logrus.Entry

WithField overrides equivalent logrus's func

func WithFields

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

WithFields overrides equivalent logrus's func

Types

This section is empty.

Jump to

Keyboard shortcuts

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