rollbar

package
v0.0.0-...-dad4d3c Latest Latest
Warning

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

Go to latest
Published: Jan 11, 2023 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

Jump to

Keyboard shortcuts

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