Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func FHIRServer ¶
FHIRServer returns a slog attribute for FHIR server URLs.
func GetLogrusLevel ¶ added in v0.10.0
GetLogrusLevel converts a slog level to a logrus level string.
func Init ¶
func Init()
Init initializes the global slog logger with JSON output and trace context injection. Default log level is Debug to match previous zerolog configuration.
func InitLogrus ¶ added in v0.10.0
func InitLogrus()
InitLogrus configures the global logrus logger to route all log output through slog. This ensures libraries that use logrus (e.g. OPA, nuts-node) participate in the centralized slog pipeline, including OpenTelemetry export.
Types ¶
type ContextHandler ¶
ContextHandler wraps a slog.Handler and automatically adds trace context to log records. When a valid OpenTelemetry span is present in the context, trace_id and span_id are added.
func (*ContextHandler) Handle ¶
Handle adds trace context attributes to the record before delegating to the wrapped handler.