Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var (
Fingerprint = "fingerprint"
)
Rollbar defines the following common fields:
Functions ¶
func New ¶
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.
Click to show internal directories.
Click to hide internal directories.