log4

package
v0.0.0-...-8e1814b Latest Latest
Warning

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

Go to latest
Published: Oct 9, 2019 License: Apache-2.0 Imports: 9 Imported by: 0

Documentation

Index

Constants

View Source
const (
	VERSION = "v0.1.0"
	MAJOR   = 0
	MINOR   = 1
	BUILD   = 0
)

Version information

Variables

This section is empty.

Functions

This section is empty.

Types

type Logger4

type Logger4 interface {
	// Fatal(arg0 interface{}, args ...interface{})
	Fatal(args ...interface{})
	Fatalf(format string, args ...interface{})
	// Debug(arg0 interface{}, args ...interface{})
	Debug(args ...interface{})
	Debugf(format string, args ...interface{})
	// Info(arg0 interface{}, args ...interface{})
	Info(args ...interface{})
	Infof(format string, args ...interface{})
	// Warning(arg0 interface{}, args ...interface{})
	Warning(args ...interface{})
	Warningf(format string, args ...interface{})
	// Error(arg0 interface{}, args ...interface{})
	Error(args ...interface{})
	Errorf(format string, args ...interface{})

	WithFields(fields logrus.Fields) *logrus.Entry
	WithError(err error) *logrus.Entry
}

func NewFileLogger

func NewFileLogger(fileName string) Logger4

NewFileLogger New Creates a new logger with a "file" writer to send log messages at or above lvl to standard output.

func NewOutLogger

func NewOutLogger() Logger4

NewOutLogger New Creates a new logger with a "stderr" writer to send log messages at or above lvl to standard output.

Jump to

Keyboard shortcuts

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