Documentation
¶
Overview ¶
Package zerologadapter bridges zerolog into log/slog, so applications that log with zerolog can plug their logger into slog-based libraries (such as authz) without a second logging stack. It lives in its own package so that applications not using zerolog never link it.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func Handler ¶
Handler wraps logger as a slog.Handler. slog groups are flattened into dot-separated key prefixes (group "req" + key "id" → "req.id"). The record's timestamp and source location are not forwarded: timestamps come from the wrapped logger's own configuration (e.g. zerolog's Timestamp()).
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.