Documentation
¶
Index ¶
- Constants
- func AccessLogger(logger *slog.Logger) *slog.Logger
- func BusinessLogger(logger *slog.Logger) *slog.Logger
- func SetupLogger(format LogFormat, debug bool, output io.Writer) *slog.Logger
- func SystemLogger(logger *slog.Logger) *slog.Logger
- func WithCategory(logger *slog.Logger, category string) *slog.Logger
- type Event
- type LogFormat
Constants ¶
View Source
const ( // CategoryAccess tags access logs. CategoryAccess = "access" // CategoryBusiness tags domain logs. CategoryBusiness = "business" // CategorySystem tags system logs. CategorySystem = "system" )
Variables ¶
This section is empty.
Functions ¶
func AccessLogger ¶ added in v0.22.0
AccessLogger returns a logger tagged for access logs.
func BusinessLogger ¶ added in v0.22.0
BusinessLogger returns a logger tagged for business logs.
func SetupLogger ¶
SetupLogger configures a structured logger with the specified format and debug mode.
func SystemLogger ¶ added in v0.22.0
SystemLogger returns a logger tagged for system logs.
Types ¶
type Event ¶ added in v0.22.0
type Event int
Event represents a structured log event identifier.
const ( EventEncodeResponseFailed Event = iota EventHeartbeatMailboxFull EventHeartbeatMetadataMissing EventHeartbeatStarted EventHistoryDropped EventNotificationDelivered EventNotificationDeliveryFailed EventNotificationMissing EventNotificationTargetDelivered EventNotificationTargetDispatch EventNotificationTargetFailed EventReceiverEmpty EventReceiverMissing EventRoutesMounted EventStageTransition EventWebhookResponse )
Click to show internal directories.
Click to hide internal directories.