Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type ContextHook ¶
type ContextHook struct{}
ContextHook storing nothing but behavior
func (ContextHook) Fire ¶
func (hook ContextHook) Fire(entry *logrus.Entry) error
Fire the log entry
func (ContextHook) Levels ¶
func (hook ContextHook) Levels() []logrus.Level
Levels returns all log levels
type SyslogHook ¶
SyslogHook to send logs via syslog.
func NewSyslogHook ¶
func NewSyslogHook(appName, facility string) (*SyslogHook, error)
NewSyslogHook creats SyslogHook
func (*SyslogHook) Fire ¶
func (hook *SyslogHook) Fire(entry *logrus.Entry) error
Fire the log entry
func (*SyslogHook) Levels ¶
func (hook *SyslogHook) Levels() []logrus.Level
Levels returns list of levels
Click to show internal directories.
Click to hide internal directories.