SaaSHub helps you find the best software and product alternatives Learn more →
Top 17 Go slog Projects
-
Project mention: Slogor: The colorful slog handler is now stable with version 1.1.2! | /r/golang | 2023-11-05
-
InfluxDB
Purpose built for real-time analytics at any scale. InfluxDB Platform is powered by columnar analytics, optimized for cost-efficient storage, and built with open data standards.
-
slog
📑 Lightweight, configurable, extensible logging library written in Go. Support multi level, multi outputs and built-in multi file logger, buffers, clean, rotate-file handling.一个易于使用的,轻量级、可配置、可扩展的日志库。支持多个级别,输出到多文件;内置文件日志处理、自动切割、清理、压缩等增强功能 (by gookit)
Project mention: Launch HN: Patchwork (YC W24) – Automatically add structured logs to your code | news.ycombinator.com | 2024-08-29> Refactoring the logs in existing code bases today is a manual slog.
slog is shorthand for structured logs[1][2][3][4]. So refactoring the logs [without a tool] is manually converting them to a slog. You have a great pun on your hands.
> Speaking from experience?
I have a notebook laying around with a loose plan on how to get the most compression possible out of a log file. It would use ML to figure out what the log strings would be - but I think your idea of scanning the executable is even more clever. Anyway, once it knows the log strings you can probably stuff it into off the shelf column storage for great compression rates. And if the compression rates are good enough then searches should be much much faster as well.
Who do you reckon are the more important existing competitors? Grafana labs or Sonarqube?
[1] https://github.com/slog-rs/slog
[2] https://github.com/gookit/slog
[3] https://github.com/kala13x/slog
[4] https://pkg.go.dev/log/slog
-
I built a drop-in replacement to `error` recently. Instead of manipulating strings, it adds context, stacktrace... in a structured way.
https://github.com/samber/oops
-
slog-multi
🚨 Design workflows of slog handlers: pipeline, middleware, fanout, routing, failover, load balancing...
-
-
-
-
SaaSHub
SaaSHub - Software Alternatives and Reviews. SaaSHub helps you find the best software and product alternatives
-
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.
-
-
-
-
-
-
Project mention: All you need is Wide Events, not "Metrics, Logs and Traces" | news.ycombinator.com | 2024-02-27
There seems to be somebody trying to do the second idea for Go's slog package: https://github.com/samber/slog-parquet
-
-
Project mention: Show HN: Altnrslog – New Relic Logs in Context with Log/Slog (Golang OSS) | news.ycombinator.com | 2024-04-13
-
ctxkey
A library to manage context keys. Additionally implements conenience functions to log the keys with slog.
-
SaaSHub
SaaSHub - Software Alternatives and Reviews. SaaSHub helps you find the best software and product alternatives
Go slog discussion
Go slog related posts
-
Go structured logging log/slog middleware
-
Slogor: The colorful slog handler is now stable with version 1.1.2!
-
Slogtest
-
Logging context values using slog
-
slog module, colorize output based on level
-
[Golang] tint: 🌈 slog.Handler that writes tinted logs
-
Slog – minimal structured Go logging
-
A note from our sponsor - SaaSHub
www.saashub.com | 16 Sep 2024
Index
What are some of the best open-source slog projects in Go? This list will help you:
Project | Stars | |
---|---|---|
1 | tint | 713 |
2 | slog | 386 |
3 | oops | 384 |
4 | slog-multi | 340 |
5 | slog | 332 |
6 | slog-gin | 109 |
7 | slog-formatter | 108 |
8 | slog-sampling | 49 |
9 | slog-sentry | 43 |
10 | slogt | 38 |
11 | slogx | 29 |
12 | slogx | 15 |
13 | slog-datadog | 11 |
14 | slog-parquet | 10 |
15 | slogmw | 8 |
16 | altnrslog | 4 |
17 | ctxkey | 3 |