Documentation ¶
Index ¶
- type RollbarCore
- func (c *RollbarCore) Check(entry zapcore.Entry, checkedEntry *zapcore.CheckedEntry) *zapcore.CheckedEntry
- func (le *RollbarCore) Enabled(l zapcore.Level) bool
- func (c *RollbarCore) Sync() error
- func (c *RollbarCore) With(fields []zapcore.Field) zapcore.Core
- func (c *RollbarCore) Write(entry zapcore.Entry, fields []zapcore.Field) error
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type RollbarCore ¶
type RollbarCore struct {
// 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.