rollbar

package
v0.0.0-...-cebcfcd Latest Latest
Warning

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

Go to latest
Published: Mar 9, 2020 License: Apache-2.0 Imports: 7 Imported by: 10

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func LogInternalErrors

func LogInternalErrors(l log15.Logger)

LogInternalErrors logs rollbar post errors

func MkHandler

func MkHandler(c Config) log15.FuncHandlerT

MkHandler creates a handler for Rollbar service

func WaitForRollbar

func WaitForRollbar(logger ReporterLogger)

WaitForRollbar is a panic handler that waits for rollbar if rollbar is configured.

Types

type Config

type Config struct {
	Token   string `yaml:"token"`
	Env     string `yaml:"-"`
	Version string `yaml:"-"`
}

Config wraps Rollbar parameters

func (Config) Check

func (rc Config) Check() error

Check validates the config content

type ReporterLogger

type ReporterLogger interface {
	Crit(msg string, ctx ...interface{})
	Debug(msg string, ctx ...interface{})
}

ReporterLogger is a reduced logger interface for critical messages

Jump to

Keyboard shortcuts

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