Skip to content

Releases: altafino/logger

v2.0.0

11 Jun 02:54
87e01bf

Choose a tag to compare

It adds what slog doesn't give you out of the box:

Extra levels for services — HTTP for request logs and CRITICAL for pager-worthy failures, plus an ONLY level for temporary debugging.
Pretty, colored terminal output for development, powered by [lmittmann/tint](https://github.com/lmittmann/tint), with JSON and logfmt output for production.
Runtime-adjustable log level — goroutine-safe, no restart needed.
Fan-out to multiple handlers (e.g. colored console + JSON file) via [samber/slog-multi](https://github.com/samber/slog-multi).
Ready-made net/http middleware for structured request logging (works great with [go-chi](https://github.com/go-chi/chi)).
Full slog interoperability — levels are plain slog.Level values, every logger wraps a *slog.Logger, and any third-party slog.Handler can be plugged in.

Requires Go 1.26+.

v1.0.6

16 Jul 12:01

Choose a tag to compare

update

v1.0.5

16 Jul 11:54

Choose a tag to compare

add ONLY level

v1.0.4

16 Jul 11:49

Choose a tag to compare

add ONLY level