Documentation ¶ Overview ¶ Package papertrail implements a papertrail logfmt format handler. Index ¶ type Config type Handler func New(config *Config) *Handler func (h *Handler) HandleLog(e *log.Entry) error Constants ¶ This section is empty. Variables ¶ This section is empty. Functions ¶ This section is empty. Types ¶ type Config ¶ type Config struct { // Papertrail settings. Host string // Host subdomain such as "logs4" Port int // Port number // Application settings Hostname string // Hostname value Tag string // Tag value } Config for Papertrail. type Handler ¶ type Handler struct { *Config // contains filtered or unexported fields } Handler implementation. func New ¶ func New(config *Config) *Handler New handler. func (*Handler) HandleLog ¶ func (h *Handler) HandleLog(e *log.Entry) error HandleLog implements log.Handler. Source Files ¶ View all Source files papertrail.go Click to show internal directories. Click to hide internal directories.