mirror of
https://github.com/golang/go.git
synced 2025-05-05 15:43:04 +00:00
Created a middleware and library that allows two context based workflows: storing attributes in the context, to be added to log lines by a handler; and adding the logger itself to context, with helper methods for interacting with it directly in the context. https://github.com/veqryn/slog-context
parent
a44d8f8975
commit
83c230734e
@ -16,6 +16,7 @@ This page links to projects that use or enhance [`slog`](https://pkg.go.dev/log/
|
|||||||
- [zapr](https://github.com/go-logr/zapr): starting with v1.3.0, both slog/logr and go-logr/logr APIs are supported by the same logger instance.
|
- [zapr](https://github.com/go-logr/zapr): starting with v1.3.0, both slog/logr and go-logr/logr APIs are supported by the same logger instance.
|
||||||
|
|
||||||
#### Logging Middleware
|
#### Logging Middleware
|
||||||
|
- slog-context: store attributes or the logger in context: https://github.com/veqryn/slog-context
|
||||||
- slog-dedup: deduplication of attribute keys for use with json logging: https://github.com/veqryn/slog-dedup
|
- slog-dedup: deduplication of attribute keys for use with json logging: https://github.com/veqryn/slog-dedup
|
||||||
|
|
||||||
#### HTTP server middleware
|
#### HTTP server middleware
|
||||||
|
Loading…
x
Reference in New Issue
Block a user