slog-sampling
g8
slog-sampling | g8 | |
---|---|---|
1 | 1 | |
40 | 57 | |
- | - | |
6.9 | 5.9 | |
16 days ago | 13 days ago | |
Go | Go | |
MIT License | MIT License |
Stars - the number of stars that a project has on GitHub. Growth - month over month growth in stars.
Activity is a relative number indicating how actively a project is being developed. Recent commits have higher weight than older ones.
For example, an activity of 9.0 indicates that a project is amongst the top 10% of the most actively developed projects that we are tracking.
slog-sampling
-
Slog: Zero-dependency structured logging in Go
A guide covering how to write custom handlers is out of scope for this post, but you can find one such guide written by the author of slog here. Thankfully, you donβt need to write a handler from scratch to use one. There are several community-contributed handlers, including handlers that allow you to output colored logs, and a handler that lets you implement sampling. You can find a full list here.
g8
What are some alternatives?
slog-formatter - π¨ slog: Attribute formatting
fosite - Extensible security first OAuth 2.0 and OpenID Connect SDK for Go.
tint - π slog.Handler that writes tinted (colorized) logs
authorizer - Your data, your control. Fully open source, authentication and authorization. No lock-ins. Deployment in Railway in 120 seconds || Spin a docker image as a micro-service in your infra. Built in login page and Admin panel out of the box.
slog-sentry - π¨ slog: Sentry handler
paseto - Platform-Agnostic Security Tokens implementation in GO (Golang)
go - The Go programming language
cerbos - Cerbos is the open core, language-agnostic, scalable authorization solution that makes user permissions and authorization simple to implement and manage by writing context-aware access control policies for your application resources.
example - Go example projects
slog-gin - π¨ Gin middleware for slog logger
slog-multi - π¨ Design workflows of slog handlers: pipeline, middleware, fanout, routing, failover, load balancing...