Go slog

Open-source Go projects categorized as slog

Top 17 Go slog Projects

  • tint

    🌈 slog.Handler that writes tinted (colorized) logs

    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.

    InfluxDB logo
  • 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

  • oops

    🔥 Error handling library with context, assertion, stack trace and source fragments

    Project mention: Don't Return Err in Go | news.ycombinator.com | 2024-05-21

    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...

  • slog

    Minimal structured logging library for Go (by coder)

  • slog-gin

    🚨 Gin middleware for slog logger

  • slog-formatter

    🚨 slog: Attribute formatting

  • SaaSHub

    SaaSHub - Software Alternatives and Reviews. SaaSHub helps you find the best software and product alternatives

    SaaSHub logo
  • slog-sampling

    🚨 slog sampling: drop repetitive log records

    Project mention: Slog: Zero-dependency structured logging in Go | dev.to | 2023-11-04

    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.

  • slog-sentry

    🚨 slog: Sentry handler

  • slogt

    Bridge between Go testing.T and slog.

  • slogx

    Simple slog wrapper for easy life, with opentelemetry tracing support

  • slogx

    slog logger extensions (by cappuccinotm)

  • slog-datadog

    🚨 slog: Datadog handler

  • slog-parquet

    🚨 slog: Parquet handler + Object Storage

    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

  • slogmw

    Middleware for the go standard library log/slog package

    Project mention: Go structured logging log/slog middleware | news.ycombinator.com | 2023-12-21
  • altnrslog

    alternative library for "New Relic Logs in Context" with log/slog.

    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

    SaaSHub logo
NOTE: The open source projects on this list are ordered by number of github stars. The number of mentions indicates repo mentiontions in the last 12 Months or since we started tracking (Dec 2020).

Go slog discussion

Log in or Post with

Go slog related posts

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

Sponsored
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.
www.influxdata.com

Did you konow that Go is
the 4th most popular programming language
based on number of metions?