log

package
v1.4.8 Latest Latest
Warning

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

Go to latest
Published: Dec 7, 2019 License: MIT Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	// Stores the flags
	DumpFlags int = log.Lshortfile
)
View Source
var Logger *logrus.Logger
View Source
var LogrusRegexp = regexp.MustCompile(`sirupsen/logrus(@.*)?/.*.go`)
View Source
var MiscRegexp = regexp.MustCompile(`zxfonline/misc(@.*)?/log/.*.go`)
View Source
var SuffixesToIgnoreArray = []*regexp.Regexp{
	MiscRegexp,
	LogrusRegexp,
}

Functions

func Debug

func Debug(args ...interface{})

func Debugf

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

func Debugln added in v1.0.2

func Debugln(args ...interface{})

func DumpStack added in v1.1.7

func DumpStack() string

func Error

func Error(args ...interface{})

func Errorf

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

func Errorln added in v1.0.2

func Errorln(args ...interface{})

func Fatal

func Fatal(args ...interface{})

Not recommended

func Fatalf

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

Not recommended

func Fatalln added in v1.0.2

func Fatalln(args ...interface{})

func Info

func Info(args ...interface{})

func Infof

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

func Infoln added in v1.0.2

func Infoln(args ...interface{})

func LogStack

func LogStack(level logrus.Level)

func Panic

func Panic(args ...interface{})

func Panicf

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

func Panicln added in v1.0.2

func Panicln(args ...interface{})

func Print

func Print(args ...interface{})

func PrintPanicStack

func PrintPanicStack()

use for defer recover

func Printf

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

func Println added in v1.0.2

func Println(args ...interface{})

func SetOutput added in v1.2.3

func SetOutput(output io.Writer)

SetOutput sets the logger output.

func Trace

func Trace(args ...interface{})

func Tracef

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

func Traceln added in v1.0.2

func Traceln(args ...interface{})

func Warn

func Warn(args ...interface{})

func Warnf

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

func Warning added in v1.0.2

func Warning(args ...interface{})

func Warningf added in v1.0.2

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

func Warningln added in v1.0.2

func Warningln(args ...interface{})

func Warnln added in v1.0.2

func Warnln(args ...interface{})

Types

This section is empty.

Jump to

Keyboard shortcuts

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