logging

package
v0.2.2 Latest Latest
Warning

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

Go to latest
Published: Apr 23, 2020 License: MIT Imports: 4 Imported by: 3

Documentation

Index

Constants

This section is empty.

Variables

View Source
var L = logrus.New()

L the global logger

Functions

func WDebug added in v0.1.2

func WDebug(msg string, kvs ...interface{})

WDebug debug log with fields

func WError added in v0.1.2

func WError(msg string, kvs ...interface{})

WError error log with fields

func WFatal added in v0.1.2

func WFatal(msg string, kvs ...interface{})

WFatal fatal log with fields

func WInfo added in v0.1.2

func WInfo(msg string, kvs ...interface{})

WInfo info log with fields

func WTrace added in v0.1.2

func WTrace(msg string, kvs ...interface{})

WTrace trace log with fields

func WWarn added in v0.1.2

func WWarn(msg string, kvs ...interface{})

WWarn warn log with fields

Types

type ContextHook added in v0.1.2

type ContextHook struct{}

ContextHook ...

func (ContextHook) Fire added in v0.1.2

func (hook ContextHook) Fire(entry *logrus.Entry) error

Fire ...

func (ContextHook) Levels added in v0.1.2

func (hook ContextHook) Levels() []logrus.Level

Levels ...

Jump to

Keyboard shortcuts

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