Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type PapertrailHook ¶
PapertrailHook to send logs to a logging service compatible with the Papertrail API.
func NewPapertrailHook ¶
func NewPapertrailHook(host string, port int, appName string) (*PapertrailHook, error)
NewPapertrailHook creates a hook to be added to an instance of logger.
func (*PapertrailHook) Fire ¶
func (hook *PapertrailHook) Fire(entry *logrus.Entry) error
Fire is called when a log event is fired.
func (*PapertrailHook) Levels ¶
func (hook *PapertrailHook) Levels() []logrus.Level
Levels returns the available logging levels.
Click to show internal directories.
Click to hide internal directories.