Documentation ¶
Index ¶
Constants ¶
View Source
const DefaultSentryFlushTimeout = 5 * time.Second
DefaultSentryFlushTimeout is sentry flush timeout used in sentry.Flush() when calling Core.Sync()
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Core ¶
type Core struct { zapcore.LevelEnabler // contains filtered or unexported fields }
Core struct
func NewCore ¶
func NewCore(enab zapcore.LevelEnabler, client *sentry.Client, options ...Option) *Core
NewCore creates a zapcore.Core.
func (*Core) Check ¶
func (c *Core) Check(entry zapcore.Entry, checked *zapcore.CheckedEntry) *zapcore.CheckedEntry
Check verifies whether or not the provided entry should be logged, by comparing the log level with the configured log level in the core. If it should be logged the core is added to the returned entry.
Click to show internal directories.
Click to hide internal directories.