Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type SentryHandler ¶
SentryHandler is a Handler that writes log records to the Sentry.
func NewSentryHandler ¶
func NewSentryHandler( handler slog.Handler, levels []slog.Level, ) *SentryHandler
NewSentryHandler creates a SentryHandler that writes to w, using the given options.
func (*SentryHandler) Enabled ¶
Enabled reports whether the handler handles records at the given level.
func (*SentryHandler) Handle ¶
Handle intercepts and processes logger messages. In our case, send a message to the Sentry.
Click to show internal directories.
Click to hide internal directories.