rollbar

package
Version: v0.0.0-...-bb23cd1 Latest Latest
Warning

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

Go to latest
Published: Apr 30, 2021 License: MIT Imports: 2 Imported by: 0

Documentation

Overview

Package rollbar implements a JSON handler.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Client

type Client interface {
	MessageWithExtras(level string, msg string, extras map[string]interface{})
}

Client that connects to rollbar

type Config

type Config struct {
	Token       string
	Environment string
	CodeVersion string
	ServerHost  string
	ServerRoot  string
}

Config is the configuration of the handler

type Handler

type Handler struct {
	Client Client
}

Handler implementation.

func New

func New(config *Config) *Handler

New returns the default implementation of a Client.

func (*Handler) Handle

func (h *Handler) Handle(e *log.Entry)

Handle handles the log entry

Source Files

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
t or T : Toggle theme light dark auto