
The Best Go Libraries For Logging (63)
Discover the best Go libraries for Logging! Find the perfect tools to streamline your development and boost productivity. From go-log to logdump, we've got you covered. Let the coding begin!
go-log
A logging library with stack traces, object dumping and optional timestamps
logdump
Package for multi-level logging
lumberjack
Simple rolling logger, implements io.WriteCloser
distillog
distilled levelled logging (think of it as stdlib + log levels)
glg
glg is simple and fast leveled logging library for Go
go-log
Log lib supports level and multi handlers
go-log
Log4j implementation in Go
gomol
Multiple-output, structured logging for Go with extensible logging outputs.
go-logger
Simple logger of Go Programs, with level handlers
kemba
A tiny debug logging tool inspired by [debug](https://github.com/visionmedia/debug), great for CLI tools and applications
seelog
Logging functionality with flexible dispatching, filtering, and formatting
slf4g
Simple Logging Facade for Golang: Simple structured logging; but powerful, extendable and customizable, with huge amount of learnings from decades of past logging frameworks
slog
Lightweight, configurable, extensible logger for Go
slog-formatter
Common formatters for slog and helpers to build your own
slog-multi
Chain of slog.Handler (pipeline, fanout...)
spew
Implements a deep pretty printer for Go data structures to aid in debugging
sqldb-logger
A logger for Go SQL database driver without modify existing \*sql.DB stdlib usage
stdlog
Stdlog is an object-oriented library providing leveled logging. It is very useful for cron jobs
xylog
Leveled and structured logging, dynamic fields, high performance, zone management, simple configuration, and readable syntax
yell
Yet another minimalistic logging library
zap
Fast, structured, leveled logging in Go
zax
Integrate Context with Zap logger, which leads to more flexibility in Go logging
zerolog
Zero-allocation JSON logger
zkits-logger
A powerful zero-dependency JSON logger
zl
High Developer Experience, zap based logger. It offers rich functionality but is easy to configure
caarlos0/log
Colorful CLI logger
httpretty
Pretty-prints your regular HTTP requests on your terminal for debugging (similar to http.DumpRequest)
journald
Go implementation of systemd Journal's native API for logging
lazyjournal
A TUI for reading and filtering logs from journalctl, file system, Docker and Podman containers, as well Kubernetes pods
log
Simple, configurable and scalable Structured Logging for Go
log
Structured log interface for Go cleanly separates logging facade from its implementation
logger
Minimalistic logging library for Go
logrus
Structured logger for Go
logrusly
[logrus](https://github.com/sirupsen/logrus) plug-in to send errors to a [Loggly](https://www.loggly.com/)
logxi
12-factor app logger that is fast and makes you happy
onelog
Onelog is a dead simple but very efficient JSON logger. It is the fastest JSON logger out there in all scenarios. Also, it is one of the logger with the lowest allocation
ozzo-log
High performance logging supporting log severity, categorization, and filtering. Can send filtered log messages to various targets (e.g. console, network, mail)
sentry-go
Sentry SDK for Go. Helps monitor and track errors with real-time alerts and performance monitoring
timberjack
Rolling logger with size-based, time-based, and scheduled clock-based rotation, supporting compression and cleanup
xlog
Plugin architecture and flexible log system for Go, with level ctrl, multiple log target and custom log format
xlog
Structured logger for `net/context` aware HTTP handlers with flexible dispatching
log15
Simple, powerful logging for Go
noodlog
Parametrized JSON logging library which lets you obfuscate sensitive data and marshal any kind of content. No more printed pointers instead of values, nor escape chars for the JSON strings
glo
PHP Monolog inspired logging facility with identical severity levels
glog
Leveled execution logs for Go
go-cronowriter
Simple writer that rotate log files automatically based on current date and time, like cronolog
go-log
Simple and configurable Logging in Go, with level, formatters and writers
gone/log
Fast, extendable, full-featured, std-lib source compatible log library
log
An O(1) logging system that allows you to connect one log to multiple writers (e.g. stdout, a file and a TCP connection)
log
Structured logging package for Go
log
Simple leveled logging wrapper around standard log package
log
A simple logging framework out of the box
logex
Golang log lib, supports tracking and level, wrap by standard log lib
logo
Golang logger to different configurable writers
logrusiowriter
`io.Writer` implementation using [logrus](https://github.com/sirupsen/logrus) logger
logutils
Utilities for slightly better logging in Go (Golang) extending the standard logger
mlog
Simple logging module for go, with 5 levels, an optional rotating logfile feature and stdout/stderr output
phuslu/log
High performance structured logging
pp
Colored pretty printer for Go language
rollingwriter
RollingWriter is an auto-rotate `io.Writer` implementation with multi policies to provide log file rotation
structy/log
A simple to use log system, minimalist but with features for debugging and differentiation of messages
tail
Go package striving to emulate the features of the BSD tail program
tint
A slog.Handler that writes tinted logs