Documentation ¶
Overview ¶
Package lumberjackhook provides a logrus hook for sending logs to lumberjack
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type LumberjackHook ¶
type LumberjackHook struct {
// contains filtered or unexported fields
}
LumberjackHook is a logrus hook sends logs to InfluxDB
func InitLumberjackHook ¶
func InitLumberjackHook(levels []logrus.Level, lumberjackLogger *lumberjack.Logger) *LumberjackHook
InitLumberjackHook creates & initializes a LumberjackHook
func (*LumberjackHook) Fire ¶
func (h *LumberjackHook) Fire(entry *logrus.Entry) error
Fire implementation of interface logrus.Hook
func (*LumberjackHook) Levels ¶
func (h *LumberjackHook) Levels() []logrus.Level
Levels implementation of interface logrus.Hook
Click to show internal directories.
Click to hide internal directories.