honeycomb

package
v1.3.5 Latest Latest
Warning

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

Go to latest
Published: Feb 11, 2020 License: Apache-2.0 Imports: 9 Imported by: 2

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewWriter

func NewWriter() (io.Writer, error)

NewWriter constructs a writer that assumes its input is JSON and sends it to Honeycomb.

func Setup

func Setup(logger *logrus.Logger) *logrus.Logger

Setup sets up a logrus logger to send its data to honeycomb instead of sending it to stdout.

Types

type HoneycombHook

type HoneycombHook struct {
}

A HoneycombHook is a hook compatible with logrus which dispatches logged messages to honeycomb.

func (*HoneycombHook) Fire

func (hook *HoneycombHook) Fire(entry *logrus.Entry) error

Fire implements logrus.Hook

func (*HoneycombHook) Flush

func (*HoneycombHook) Flush()

Flush ensures that all queued messages are dispatched immediately to Honeycomb.

func (*HoneycombHook) Levels

func (hook *HoneycombHook) Levels() []logrus.Level

Levels implements logrus.Hook

Jump to

Keyboard shortcuts

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