package
0.0.0-20241227184035-be8c621d8cb0
Repository: https://github.com/ainsleydev/webkit.git
Documentation: pkg.go.dev
# Functions
Bootstrap creates a new complaint logger and sets the default.
Discard sets the default logger to discard all logs.
NewLocalHandler returns a new local handler with the given options.
NewLogger creates a new WebKit compliant logger with the given prefix.
NewNoOpLogger creates a logger that does nothing.
NewSentryHook creates a sentry hook for logrus given a sentry client.
# Variables
DefaultLogger is the logger that WebKit uses to log HTTP Requests and info messages throughout the application.
# Structs
LocalHandler is a handler that logs to the console in a human-readable format for local development environments.
SentryEventIdentityModifier is a sentry event modifier that simply passes through the event.
SentryHook implements logrus.Hook to send errors to sentry.