Logo
Explore Help
Sign In
go/logz
1
0
Fork 0
You've already forked logz
Code Issues Pull Requests Packages Releases 1 Activity
Files
main
logz/compliance_test.go

8 lines
273 B
Go
Raw Permalink Normal View History

feat(logz): initial stable release v0.9.0 Structured logger backed by log/slog with request-context enrichment, extra-field context helpers, and duck-typed automatic error enrichment. What's included: - `Logger` interface with Debug / Info / Warn / Error / With / WithContext; `New(Options)` constructor writing to os.Stdout - `WithRequestID` / `GetRequestID` and `WithField` / `WithFields` context helpers — package owns both context keys - Automatic error_code and context-field enrichment in Logger.Error via duck-typed errorWithCode / errorWithContext interfaces (no xerrors import) Tested-via: todo-api POC integration Reviewed-against: docs/adr/
2026-03-18 13:31:39 -06:00
package logz_test
import "code.nochebuena.dev/go/logz"
// Verify New returns a Logger — the concrete slogLogger type satisfies the interface.
// If any method is removed or its signature changes, this file fails to compile.
var _ logz.Logger = logz.New(logz.Options{})
Reference in New Issue Copy Permalink
Powered by Gitea Version: 1.25.4 Page: 26ms Template: 3ms
English
English
Licenses API