graylog

package
v1.0.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jul 26, 2017 License: MIT Imports: 2 Imported by: 0

Documentation

Overview

Package implements a Graylog-backed handler.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Handler

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

Handler implementation.

func New

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

func (h *Handler) Close() error

Closes connection to server, flushing message queue.

func (*Handler) HandleLog

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

HandleLog implements log.Handler.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL