loggly

package
v0.0.0-...-51f52bf Latest Latest
Warning

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

Go to latest
Published: Aug 27, 2015 License: MIT Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewLogglyAdapter

func NewLogglyAdapter(route *router.Route) (router.LogAdapter, error)

NewLogglyAdapter returns an Adapter with that uses a loggly token taken from the LOGGLY_TOKEN environment variable

Types

type Adapter

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

Adapter satisfies the router.LogAdapter interface by providing Stream which passes all messages to loggly.

func (*Adapter) SendMessage

func (l *Adapter) SendMessage(msg logglyMessage) error

SendMessage handles creating and sending a request to Loggly. Any errors that occur during that process are bubbled up to the caller

func (*Adapter) Stream

func (l *Adapter) Stream(logstream chan *router.Message)

Stream satisfies the router.LogAdapter interface and passes all messages to Loggly

Jump to

Keyboard shortcuts

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