zest

package module
v0.0.0-...-9d86a86 Latest Latest
Warning

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

Go to latest
Published: Jul 9, 2016 License: Apache-2.0 Imports: 3 Imported by: 33

README

                                             _
                                _______  ___| |_
                               |_  / _ \/ __| __|
                                / /  __/\__ \ |_
                               /___\___||___/\__|

                  a yeller sink for the lager logging library

= about

Zest will emit errors to Yeller when you log at the error level while using the
Lager logging library.

= usage

    sink := zest.NewYellerSink("YELLER_API_KEY", "staging")
    logger.RegisterSink(sink)

    // ...

= links

Lager - A logging library for Go.
https://github.com/pivotal-golang/lager

Yeller - The Clojure Error Tracker
http://yellerapp.com/

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Sink

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

Sink is the type that represents the sink that will emit errors to Yeller.

func NewYellerSink

func NewYellerSink(token, env string) *Sink

NewYellerSink creates a new Sink for use with Lager.

func (*Sink) Log

func (s *Sink) Log(line lager.LogFormat)

Log will send any error log lines up to Yeller.

Jump to

Keyboard shortcuts

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