rollbar

package
v0.0.0-...-91eccfc Latest Latest
Warning

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

Go to latest
Published: Jan 28, 2020 License: BSD-3-Clause Imports: 16 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	Fingerprint = "fingerprint"
)

Rollbar defines the following common fields:

Functions

func New

func New(token, env string) hatchet.Logger

New creates a new logger which persists messages to Rollbar. The Rollbar logger treats certain log fields specially. These are:

Message: The title of the message.

Level: The log level. Defaults to "info" for messages or "error" for traces/errors.

Timestamp: The time the message occurred. Either a `time.Time` or a Unix timestamp as int64. Defaults to `time.Now().UTC()`.

Error: An error containing an optional stack trace (from github.com/pkg/errors).

Fingerprint: An optional fingerprint under which to group messages.

Hostname: The hostname to report in the server section. Defaults to os.Hostname.

Types

This section is empty.

Jump to

Keyboard shortcuts

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