lxLog

package
v1.5.2 Latest Latest
Warning

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

Go to latest
Published: Dec 10, 2019 License: MIT Imports: 6 Imported by: 0

Documentation

Index

Constants

View Source
const (
	LogLevelPanic = "panic"
	LogLevelFatal = "fatal"
	LogLevelError = "error"
	LogLevelWarn  = "warn"
	LogLevelInfo  = "info"
	LogLevelDebug = "debug"
	LogLevelTrace = "trace"

	LogFormatText    = "text"
	LogFormatJson    = "json"
	LogFormatFluentd = "fluentd"

	FormatText OutFormat = iota + 1
	FormatJson
	FormatFluentd
)

Variables

This section is empty.

Functions

func GetLogger

func GetLogger() *logrus.Logger

func HasInit added in v1.2.9

func HasInit() bool

func InitLogger added in v1.2.9

func InitLogger(output io.Writer, logLevel, logFormat string) (log *logrus.Logger)

Types

type OutFormat added in v1.2.9

type OutFormat int

func GetOutFormat added in v1.2.9

func GetOutFormat() OutFormat

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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