Categories

Logging

Libraries for generating and working with log files.

Repos

131

Stars

118,620

30 days

+234

lmittmann

🌈 slog.Handler that writes tinted (colorized) logs

Created Mar 2023

ansi color golang logging slog
Total 1,372
30 days +9
phuslu

Fastest structured logging

Created Jul 2019

golang json log logger logging
Total 881
30 days +4
samber

🚨 Design workflows of slog handlers: pipeline, middleware, fanout, routing, failover, load balancing...

Created Apr 2023

attribute error errors go golang
Total 646
30 days +8
gookit

📑 Lightweight, configurable, extensible logging library written in Go. Support multi level, multi outputs and built-in multi file logger, buffers, clean, rotate-file handling.一个易于使用的,轻量级、可配置、可扩展的日志库。支持多个级别,输出到多文件;内置文件日志处理、自动切割、清理、压缩等增强功能

Created Jul 2020

console-logger file-logging formatter go-logger log
Total 558
30 days +3
samber

🚨 slog: Attribute formatting

Created Apr 2023

anonymization error formatter formatting go
Total 228
30 days +2
samber

🚨 slog: Loki handler

Created Apr 2023

attribute error errors go golang
Total 82
30 days +0
samber

🚨 slog: Zerolog handler

Created Sep 2023

adapter attribute error go golang
Total 77
30 days +0
samber

🚨 slog: Zap handler

Created Sep 2023

adapter attribute error go golang
Total 54
30 days +0
samber

🚨 slog: Sentry handler

Created Apr 2023

attribute error errors go golang
Total 54
30 days +0

More

coder

Minimal structured logging library for Go

Created Sep 2019

go slog structured-logging
Total 351
30 days +0
veqryn

Use golang structured logging (slog) with context. Add and retrieve logger to and from context. Add attributes to context. Automatically read any custom context values, such as OpenTelemetry TraceID.

Created Nov 2023

context golang golang-library logging opentelemetry
Total 196
30 days +0
samber

🚨 Gin middleware for slog logger

Created Apr 2023

error formatter gin gin-gonic go
Total 192
30 days +2
samber

🚨 slog sampling: drop repetitive log records

Created May 2023

go golang handler log-level logger
Total 120
30 days +1
samber

🚨 Chi middleware for slog logger

Created Oct 2023

attribute chi error errors go
Total 100
30 days +1
samber

🚨 Fiber middleware for slog logger

Created Apr 2023

attribute errors fiber go gofiber
Total 98
30 days +0
phsym

A handler for slog that prints colorized logs, similar to zerolog's console writer output without sacrificing performances

Created Aug 2023

console go golang log logger
Total 62
30 days +0
orandin

A slog adapter, highly configurable, for gorm logger

Created Aug 2023

gorm-logger slog
Total 61
30 days +0

From awesome-go (MIT), plus repos sorted by Jev.