Categories

Logging

Libraries for generating and working with log files.

Repos

131

Stars

118,625

30 days

+238

sirupsen

Structured, pluggable logging for Go.

Created Oct 2013

go logging logrus
Total 25,802
30 days +33
uber-go

Blazing fast, structured, leveled logging in Go.

Created Feb 2016

golang logging structured-logging zap
Total 24,722
30 days +58
rs

Zero Allocation JSON Logger

Created May 2017

golang json logging structured-logging zerolog
Total 12,546
30 days +25
davecgh

Implements a deep pretty printer for Go data structures to aid in debugging

Created Jan 2013

Total 6,429
30 days +6
natefinch

lumberjack is a log rolling package for Go

Created Jun 2014

Total 5,482
30 days +7
golang

Leveled execution logs for Go

Created Jul 2013

Total 3,598
30 days +0
hpcloud

Go package for reading from continously updated files (tail -f)

Created Feb 2013

Total 2,780
30 days +0
k0kubun

Colored pretty printer for Go language

Created Dec 2014

go pretty-printer
Total 2,055
30 days +1
cihub

Seelog is a native Go logging library that provides flexible asynchronous dispatching, filtering, and formatting.

Created Nov 2011

Total 1,632
30 days +0
Lifailon

TUI for viewing logs from journald, auditd, file system, Docker and Podman containers, Compose stacks and Kubernetes pods with support for log highlighting and several filtering modes.

Created Nov 2024

auditd docker-logs go gocui highlighting
Total 1,455
30 days +31
lmittmann

🌈 slog.Handler that writes tinted (colorized) logs

Created Mar 2023

ansi color golang logging slog
Total 1,372
30 days +9
apex
apex / log

Structured logging package for Go.

Created Dec 2015

apex-logs golang logger logging
Total 1,371
30 days +1
getsentry

The official Go SDK for Sentry (sentry.io)

Created Mar 2019

crash-reporting crash-reports error-monitoring go golang
Total 1,110
30 days +6
inconshreveable

Structured, composable logging for Go

Created May 2014

Total 1,103
30 days +0
phuslu

Fastest structured logging

Created Jul 2019

golang json log logger logging
Total 882
30 days +5
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
henvic

Package httpretty prints the HTTP requests you make with Go pretty on your terminal.

Created Jan 2020

cli go golang http
Total 457
30 days +1
francoispqt

Dead simple, super fast, zero allocation logger for Golang

Created May 2018

allocation fast golang logger logging
Total 413
30 days +1
simukti

A logger for Go SQL database driver without modifying existing *sql.DB stdlib usage.

Created Nov 2019

database db go golang logger
Total 380
30 days +1
hashicorp

Utilities for slightly better logging in Go (Golang).

Created Oct 2013

Total 372
30 days +1
mgutz

A 12-factor app logger built for performance and happy development

Created Mar 2015

Total 355
30 days +0
go-playground

📗 Simple, configurable and scalable Structured Logging for Go.

Created Feb 2016

errors logging stack-traces
Total 293
30 days +0
arthurkiller

Rolling writer is an IO util for auto rolling write in go.

Created Feb 2017

filewriter golang-library ioutil rotate rotatelog
Total 292
30 days +0
apsdehal

Simple logger for Go programs. Allows custom formats for messages.

Created Sep 2014

golang logger logging-library
Total 287
30 days +0
samber

🚨 slog: Attribute formatting

Created Apr 2023

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

Simple and blazing fast lockfree logging library for golang

Created Jun 2017

fast glg golang kpango log
Total 191
30 days +0
DeRuina

Timberjack is a Go log rolling library with support for size-based, time-based, and manual rotation.

Created Apr 2025

log-management log-rolling log-rotation logging rotation
Total 171
30 days +5
azer

Minimalistic logging library for Go.

Created Sep 2014

Total 158
30 days +0
rs
rs / xlog

xlog is a logger for net/context aware HTTP applications

Created Oct 2015

Total 141
30 days +0
go-ozzo

A Go (golang) package providing high-performance asynchronous logging, message filtering by severity and category, and multiple message targets.

Created Oct 2015

Total 121
30 days +0
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
caarlos0

Colorful CLI logger

Created Jun 2022

Total 64
30 days +0
utahta

Time based rotating file writer

Created Feb 2017

cronolog go golang log rotate
Total 55
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
One-com

Golang packages for writing small daemons and servers.

Created Sep 2016

daemon golang logging-library socket-activation statsd-client
Total 51
30 days +0

More

charmbracelet

A minimal, colorful Go logging library 🪵

Created Dec 2022

golang logging
Total 3,430
30 days +24
op

Golang logging library

Created Apr 2013

Total 1,797
30 days +0
go-logr

A simple logging interface for Go

Created Jan 2017

logger logging
Total 1,408
30 days +1
google

Cross platform Go logging library.

Created Feb 2016

Total 891
30 days +0
mcuadros

Syslog server library for go.

Created Dec 2013

go rfc3164 rfc5424 rfc6587 server
Total 544
30 days +0
rifflock

A local file system hook for golang logrus logger

Created Jun 2015

Total 415
30 days +0
fluent

A structured logger for Fluentd (Golang)

Created Apr 2013

fluentd fluentd-logger golang
Total 394
30 days +0
donnie4w

High-performance Go logging library, with concurrency performance 10 times or more faster than the official library. Go高性能日志库,适用于高并发场景,并发性能是官方库10倍或以上

Created Feb 2014

go-logger golang-logger high-performance log log-tracing
Total 364
30 days +1
coder

Minimal structured logging library for Go

Created Sep 2019

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

A common logging package for HashiCorp tools

Created Jun 2017

Total 349
30 days +1
kataras

A high-performant Logging Foundation for Go Applications. X3 faster than the rest leveled loggers.

Created Jul 2017

easy-to-use go golang high-performance iris
Total 340
30 days +1
agnivade

A minimalistic 12 factor log router written in Go

Created Sep 2016

golang log-rotation log-router log-stream
Total 313
30 days +1
bradfitz

a irresponsibly bad logging library

Created Dec 2021

Total 266
30 days +0
ScottMansfield

Nanosecond scale logger inspired by https://github.com/PlatformLab/NanoLog

Created Mar 2017

go golang logging performance
Total 227
30 days +0
aybabtme

Logrus formatter invoking the P͉̫o̳̼̊w̖͈̰͎e̬͔̭͂r͚̼̹̲ ̫͓͉̳͈ō̠͕͖̚f̝͍̠ ͕̲̞͖͑Z̖̫̤̫ͪa͉̬͈̗l͖͎g̳̥o̰̥̅!̣͔̲̻͊̄ ̙̘̦̹̦

Created Mar 2014

Total 213
30 days +0
golang-cz

devslog - Go slog.Handler for development

Created Aug 2023

Total 210
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
go-kit

A minimal and extensible structured logger

Created Apr 2021

Total 194
30 days +0
samber

🚨 Gin middleware for slog logger

Created Apr 2023

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

一个简单而强大的 golang 日志工具包,支持同步和异步输出到 命令行,文件, api 接口,文件支持按文件大小,文件行数,日期切分;A simple and powerful golang logging toolkit that supports synchronous and asynchronous output to the console, file, API interfaces, file support by file size, file line number, date sharding.

Created Sep 2017

console console-color console-log file filelogger
Total 184
30 days +0
blendle

Blazing fast, Zap-based Stackdriver logging.

Created May 2018

Total 178
30 days +0
philchia

gol is a high performance async log kit for golang

Created Dec 2016

async elasticsearch go gol golang
Total 175
30 days +0
go-clog

Package clog is a channel-based logging package for Go

Created Feb 2017

console discord file go logging
Total 170
30 days +0
comail

CoLog is a prefix-based leveled execution log for Go

Created Aug 2015

Total 161
30 days +0
sohlich

Logrus Hook for ElasticSearch

Created Jan 2016

elasticsearch golang logging logrus
Total 160
30 days +0
gogap

tool for logrus, let it easy to use

Created Oct 2015

graylog logger logrus logstash
Total 159
30 days +0
m-mizutani

A utility to redact sensitive data for slog in Go

Created Dec 2022

Total 148
30 days +0
lexkong

Created Jun 2018

Total 142
30 days +0
go-logr

A logr implementation using Zap

Created Jun 2018

Total 137
30 days +0
juju

A logging library for Go. Doesn't use the built in go log standard library, but instead offers a replacement.

Created Feb 2014

Total 133
30 days +0
jeanphorn

a logging package for golang similar to log4j or log4c++ supporting console, file and network.

Created Nov 2017

Total 132
30 days +0
samber

🚨 slog sampling: drop repetitive log records

Created May 2023

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

Hooks for logrus logging

Created Nov 2016

echo gin gin-gonic gin-middleware golang
Total 119
30 days +0
glitchdotcom

A Go package for logging that supports a tagged style of logging

Created Jan 2015

Total 119
30 days +0
aryming

golang日志处理包

Created Jul 2018

Total 110
30 days +0
zerodha

Extremely fast, light weight, zero alloc logfmt logging library for Go.

Created Jun 2022

golang-logger golang-logging log logfmt logger
Total 104
30 days +1
samber

🚨 Chi middleware for slog logger

Created Oct 2023

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

Debug-level logging for developers (only!)

Created Apr 2020

debugging logging
Total 99
30 days +0
willibrandon

Serilog-inspired structured logging for Go with message templates, rich formatting, and native Seq support

Created Jul 2025

elasticsearch go logging message-templates seq
Total 98
30 days +0
samber

🚨 Fiber middleware for slog logger

Created Apr 2023

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

Hierarchical, leveled, and structured logging library for Go

Created May 2014

Total 97
30 days +0
sandipb

Examples of using Uber's zap Go logging library

Created May 2018

golang golang-examples zap
Total 96
30 days +0
aiwuTech

fileLogger是一个基于Go开发的可自动分割文件进行备份的异步日志库

Created Aug 2014

Total 95
30 days +0
ivpusic

Simple but powerful go logging library

Created Dec 2014

Total 93
30 days +0
ichtrojan

HTTP request logger for Golang

Created Feb 2021

go golang logging
Total 87
30 days +0
auula

Golang logging library supporting log retrieval.

Created Apr 2020

color file golang golang-library golang-package
Total 81
30 days +0
stripe

A logger for use with daemontools.

Created Jun 2014

Total 78
30 days +0
go-log

A universal log interface

Created May 2017

golang logging
Total 77
30 days +0
goinggo

Logging System Based On The Log/Logger Standard Library

Created Nov 2013

Total 75
30 days +0
kscarlett

A tiny Go utility to generate a large amount realistic-looking Nginx logs quickly.

Created Jan 2020

log-generator logging nginx nginx-logs
Total 71
30 days +0
cloudfoundry

An opinionated logger for Go.

Created May 2014

Total 70
30 days +0
hashicorp

Golang syslog wrapper, cross-compile friendly

Created May 2014

Total 69
30 days +0
ziutek

With this package you can create your own syslog server with your own handlers for different kind of syslog messages

Created Oct 2012

Total 68
30 days +0
go-pkgz

Basic logger with some extras

Created Jan 2019

go golang logger logging
Total 67
30 days +0
ngmoco

Configurable Logger for Go

Created Jan 2012

Total 66
30 days +0
ccding

the logging package for golang

Created Jul 2013

Total 65
30 days +0
ccpaging

Next logging package for the Go programming language based on log4go, std log lib, logrus, uber zap

Created Jan 2018

Total 63
30 days +0
ipfs

A logging library used by go-ipfs

Created Sep 2015

Total 63
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
gxlog

A concise, functional, flexible and extensible logger for go.

Created Sep 2018

go golang log logger logging
Total 61
30 days +0
xiaomeng79

go封装的日志 logrus zap,并且增加了opentracing分布式日志追踪,日志格式化成json,日志大小切割

Created Jul 2018

distributed-log-tracking go golang log logrus
Total 61
30 days +0
jcelliott

A simple logger for Go

Created Jan 2013

Total 61
30 days +0
google

Deck provides a flexible logging framework for Go apps.

Created Oct 2022

logging
Total 59
30 days +0
apex

Apex Logs client for Go.

Created Jul 2019

apex-logs golang javascript logging logs
Total 59
30 days +0
axiaoxin-com

mod: zap logging in golang

Created Mar 2020

gin gin-middleware gorm-logger log sentry
Total 58
30 days +0
t-tomalak

logrus-easy-formatter is package that allows to easily customize Logrus output format

Created Feb 2018

Total 58
30 days +0
glassonion1

The logz is Go library for grouping a access log and application logs

Created Dec 2020

go golang grpc http logger
Total 56
30 days +0
Gurpartap

Adds stack trace to github.com/sirupsen/logrus #golang

Created Oct 2016

Total 54
30 days +0
hhkbp2

A Logging Library for Golang.

Created Oct 2014

Total 53
30 days +0
kdar

FactorLog is a logging infrastructure for Go that provides numerous logging functions for whatever your style may be

Created Jan 2014

Total 52
30 days +0
joonix

Logging utilities

Created Oct 2016

Total 51
30 days +0
skoowoo

simple log library for Go language

Created Aug 2013

Total 50
30 days +0
monzo

Structured logging

Created Feb 2016

Total 49
30 days +0
alecthomas

Logging package similar to log4j for the Go programming language

Created Jul 2012 Archived

Total 308
30 days +0
ezotrank

Logsend is high-performance tool for processing logs

Created Jun 2014 Archived

Total 283
30 days +0
logur

Logur is an opinionated collection of logging best practices

Created Dec 2018 Archived

go-logging logging logur
Total 202
30 days +0
RackSec

Golang package that is a drop-in replacement for the standard library log/syslog, but with extra features.

Created Dec 2015 Archived

Total 91
30 days +0
rdeusser

A simple, concise, colorful logger for Go

Created Apr 2015 Archived

go library logger logging
Total 91
30 days +0
facebookarchive

A Go library for logging

Created Mar 2019 Archived

Total 79
30 days +0
gleich

Easy to use & pretty logger for golang

Created Jan 2021 Archived

go golang gomodule logging modules
Total 51
30 days +0

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