Documentation ¶
Overview ¶
slogbreadcrumb sends everything that's emitted to slog as Sentry breadcrumb, rather than Sentry event (or error). Best used in conjunction with "github.com/samber/slog-multi" package.
Example usage:
package main import "log/slog" import slogmulti "github.com/samber/slog-multi" import slogbreadcrumb "github.com/aldy505/sentry-integration/slogbreadcrumb" func main() { slog.SetDefault(slog.New(slogmulti.Fanout( slog.NewJSONHandler(os.Stdout, &slog.HandlerOptions{Level: slog.LevelDebug}), &slogbreadcrumb.Handler{Enable: true, Level: slog.LevelDebug}, ))) }
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
Click to show internal directories.
Click to hide internal directories.