Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type RollbarCore ¶
type RollbarCore struct { zapcore.LevelEnabler // contains filtered or unexported fields }
RollbarCore is a custom core to send logs to Rollbar. Add the core using zapcore.NewTee
func NewRollbarCore ¶
func NewRollbarCore(minLevel zapcore.Level) *RollbarCore
NewRollbarCore creates a new core to transmit logs to rollbar. rollbar token and other options should be set before creating a new core
func (*RollbarCore) Check ¶
func (c *RollbarCore) Check(entry zapcore.Entry, checkedEntry *zapcore.CheckedEntry) *zapcore.CheckedEntry
Check determines if this should be sent to roll bar based on LevelEnabler
Click to show internal directories.
Click to hide internal directories.