-
https://github.com/op/go-logging has dated a little. to reduce logging overhead we should switch to a zero copy logger like https://github.com/rs/zerolog or https://github.com/uber-go/zap.
Not only…
-
With this code:
```
package main
import (
"os"
"strings"
"github.com/rs/zerolog"
"github.com/rs/zerolog/log"
)
func main() {
zerolog.LevelFieldM…
-
Add a sampling logger to enable high-volume error points that provide sufficient fidelity of the underlying condition but doesn't drown the system in IO or useless repeated data. Zerolog supports thi…
sean- updated
7 years ago
-
This project helps me a lot to have a guideline to follow the clean code, so thank you very much.
I'm studying go and forgive me if I did something wrong.
But when I set the log level to **error**…
-
I'm using zerolog in my package and when I try to use it within gophernotes, I get the following error every time it is used:
```
zerolog: could not write event: write |1: file already closed
```
…
-
when using the `.Caller` like this
```golang
package main
import (
"github.com/rs/zerolog"
"github.com/rs/zerolog/log"
)
func main() {
logger := log.With().Caller().Logger()
logger.In…
-
This log looks really great, but it is implemented with slog
![image](https://github.com/rs/zerolog/assets/58794405/7e74f304-bfac-4e5e-8fb1-6996c5791688)
Does somebody know how we can implem…
xasai updated
11 months ago
-
I was following this tutorial (https://hackernoon.com/keep-passwords-and-secrets-out-of-your-logs-with-go-a2294a9546ce) which uses marshallJSON to redact sensitive information (password, secret).
It …
-
We need a better abstraction on top of our current logging implementation.
@essial suggests we try to integrate `zerolog`(https://pkg.go.dev/github.com/rs/zerolog)
-
Currently it is not possible to use the Enricher to log context specific information that is added from other middlewares like for example the user ID.
Could calling the Enricher be moved to after…
bumi updated
4 months ago