zerologadapter

package
v0.1.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jul 13, 2026 License: MIT Imports: 3 Imported by: 0

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

func Handler(logger *zerolog.Logger) slog.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.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL