slog-buffer

module
v0.0.3 Latest Latest
Warning

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

Go to latest
Published: Sep 23, 2025 License: MIT

README

Buffered Log Handler The handler package provides a buffered slog.Handler implementation for Go's structured logging library.

This handler is designed for situations where you need to collect and batch log records before processing them. Instead of writing logs directly to a destination, the Buffered handler first transforms each slog.Record into a custom type and then sends it to a provided store.

Directories

Path Synopsis
pkg
handler
Package handler provides a buffered slog.Handler implementation that transforms log records and writes them to a provided store.
Package handler provides a buffered slog.Handler implementation that transforms log records and writes them to a provided store.
store
Package store provides a configurable batching memory queue for streaming data entries with periodic or size-based flushing to a user-provided Flusher.
Package store provides a configurable batching memory queue for streaming data entries with periodic or size-based flushing to a user-provided Flusher.
store/mocks
Package mocks is a generated GoMock package.
Package mocks is a generated GoMock package.

Jump to

Keyboard shortcuts

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