logging

package
v1.0.0 Latest Latest
Warning

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

Go to latest
Published: Mar 29, 2018 License: LGPL-3.0 Imports: 8 Imported by: 18

Documentation

Index

Constants

View Source
const (
	PanicLevel = "panic"
	FatalLevel = "fatal"
	ErrorLevel = "error"
	WarnLevel  = "warn"
	InfoLevel  = "info"
	DebugLevel = "debug"
)

const

Variables

This section is empty.

Functions

func CLog added in v1.0.0

func CLog() *logrus.Logger

CLog return console logger

func Init added in v1.0.0

func Init(path string, level string, age uint32)

Init loggers

func LoadFunctionHooker added in v1.0.0

func LoadFunctionHooker(logger *logrus.Logger)

LoadFunctionHooker loads a function hooker to the logger

func NewFileRotateHooker added in v1.0.0

func NewFileRotateHooker(path string, age uint32) logrus.Hook

NewFileRotateHooker enable log file output

func VLog added in v1.0.0

func VLog() *logrus.Logger

VLog return verbose logger

Types

This section is empty.

Jump to

Keyboard shortcuts

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