package logrus_papertrail
import "github.com/docker/libnetwork/Godeps/_workspace/src/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.0-dev.3
- Published
- Feb 18, 2016
- Platform
- linux/amd64
- Imports
- 5 packages
- Last checked
- 20 hours ago –
Tools for package owners.