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

package graylog

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

Package implements a Graylog-backed handler.

Index

Package Files

graylog.go

type Handler Uses

type Handler struct {
    // contains filtered or unexported fields
}

Handler implementation.

func New Uses

func New(url string) (*Handler, error)

New handler. Connection string should be in format "udp://<ip_address>:<port>". Server should have GELF input enabled on that port.

func (*Handler) Close Uses

func (h *Handler) Close() error

Closes connection to server, flushing message queue.

func (*Handler) HandleLog Uses

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

HandleLog implements log.Handler.

Package graylog imports 2 packages (graph). Updated 2016-09-06. Refresh now. Tools for package owners. This is an inactive package (no imports and no commits in at least two years).