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
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 ...
Click to show internal directories.
Click to hide internal directories.