log: github.com/apex/log/handlers/papertrail Index | Files

package papertrail

import "github.com/apex/log/handlers/papertrail"

Package papertrail implements a papertrail logfmt format handler.


Package Files


type Config Uses

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 Uses

type Handler struct {
    // contains filtered or unexported fields

Handler implementation.

func New Uses

func New(config *Config) *Handler

New handler.

func (*Handler) HandleLog Uses

func (h *Handler) HandleLog(e *log.Entry) error

HandleLog implements log.Handler.

Package papertrail imports 9 packages (graph) and is imported by 1 packages. Updated 2016-12-25. Refresh now. Tools for package owners. This is an inactive package (no imports and no commits in at least two years).