honeylager

package module
v0.0.0-...-67c7942 Latest Latest
Warning

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

Go to latest
Published: Sep 21, 2017 License: MIT Imports: 9 Imported by: 10

README

honeylager

Integrate https://github.com/cloudfoundry/lager with Honeycomb.io

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ReadResponses

func ReadResponses()

ReadResponses is a blocking method that waits for responses from Honeycomb and prints whether the event emission succeeded or failed. Callers will likely want to execute this method in a goroutine due to its blocking, asynchronous, nature.

Types

type Sink

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

func NewSink

func NewSink(
	honeycombWriteKey string,
	honeycombDataset string,
	minLogLevel lager.LogLevel,
) *Sink

NewSink returns a new Sink Callers are expected to call Close() when they are done e.g. sink := NewSink(); defer sink.Close() Callers may also wish to track the responses with ReadResponses()

func (*Sink) Close

func (sink *Sink) Close()

func (*Sink) Log

func (sink *Sink) Log(logFormat lager.LogFormat)

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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