examples/

directory
v2.0.0-beta.2 Latest Latest
Warning

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

Go to latest
Published: Mar 20, 2026 License: MIT

Directories

Path Synopsis
Basic example: NewLogger builder, logging levels, fields, groups.
Basic example: NewLogger builder, logging levels, fields, groups.
Context example: request-scoped fields via context.Context.
Context example: request-scoped fields via context.Context.
logfc example: logger-in-context pattern.
logfc example: logger-in-context pattern.
Router example: multi-destination logging with independent encoders, level filters, and sync/async I/O.
Router example: multi-destination logging with independent encoders, level filters, and sync/async I/O.
slog integration example: logf as backend for slog, third-party libraries, and mixed logf/slog usage in the same application.
slog integration example: logf as backend for slog, third-party libraries, and mixed logf/slog usage in the same application.
WriterSlot example: lazy destination initialization.
WriterSlot example: lazy destination initialization.

Jump to

Keyboard shortcuts

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