rollbarplugin

package
v7.1.0+incompatible Latest Latest
Warning

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

Go to latest
Published: Aug 13, 2020 License: MIT Imports: 5 Imported by: 0

README

Rollbar Plugin

This plugin will send every log with a level >= Error to rollbar.

Configuration

This plugin need two different environment variables:

  • ROLLBAR_TOKEN: The rollbar token used to authenticate against the Rollbar API
  • GO_ENV: The go environment

Usage

To use it add this to your main:

rollbarplugin.Register()

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Register

func Register()

Register the plugin to the logger library

Types

type RollbarPlugin

type RollbarPlugin struct{}

func (RollbarPlugin) Hook

func (p RollbarPlugin) Hook() (bool, logrus.Hook)

Generate the hook

func (RollbarPlugin) Name

func (p RollbarPlugin) Name() string

Jump to

Keyboard shortcuts

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