Releases: altafino/logger
Releases · altafino/logger
v2.0.0
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
update
v1.0.5
add ONLY level
v1.0.4
add ONLY level