package logrus_papertrail
import "github.com/sirupsen/logrus/hooks/papertrail"
Index ¶
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.
Source Files ¶
- Version
- v0.7.2
- Published
- Mar 27, 2015
- Platform
- js/wasm
- Imports
- 5 packages
- Last checked
- 1 hour ago –
Tools for package owners.