Logging

Libraries for generating and working with log files.

logrus24.9K

Structured logger for Go.

zap22.4K

Fast, structured, leveled logging in Go.

zerolog10.8K

Zero-allocation JSON logger.

spew6.1K

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

lumberjack4.9K

Simple rolling logger, implements io.WriteCloser.

glog3.6K

Leveled execution logs for Go.

tail2.7K

Go package striving to emulate the features of the BSD tail program.

pp1.9K

Colored pretty printer for Go language.

seelog1.6K

Logging functionality with flexible dispatching, filtering, and formatting.

log1.4K

Structured logging package for Go.

log151.1K

Simple, powerful logging for Go.

tint870

A slog.Handler that writes tinted logs.

phuslu/log706

High performance structured logging.

slog-multi418

Chain of slog.Handler (pipeline, fanout...).

onelog415

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.

slog412

Lightweight, configurable, extensible logger for Go.

httpretty402

Pretty-prints your regular HTTP requests on your terminal for debugging (similar to http.DumpRequest).

logutils367

Utilities for slightly better logging in Go (Golang) extending the standard logger.

sqldb-logger365

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

logxi358

12-factor app logger that is fast and makes you happy.

rollingwriter299

RollingWriter is an auto-rotate io.Writer implementation with multi policies to provide log file rotation.

log293

Simple, configurable and scalable Structured Logging for Go.

go-logger289

Simple logger of Go Programs, with level handlers.

logur204

An opinionated logger interface and collection of logging best practices with adapters and integrations for well-known libraries (logrus, go-kit log, zap, zerolog, etc).

glg189

glg is simple and fast leveled logging library for Go.

logger157

Minimalistic logging library for Go.

slog-formatter142

Common formatters for slog and helpers to build your own.

xlog137

Structured logger for net/context aware HTTP handlers with flexible dispatching.

ozzo-log122

High performance logging supporting log severity, categorization, and filtering. Can send filtered log messages to various targets (e.g. console, network, mail).

log-voyage94

Full-featured logging saas written in golang.

go-cronowriter56

Simple writer that rotate log files automatically based on current date and time, like cronolog.

gone/log50

Fast, extendable, full-featured, std-lib source compatible log library.

stdlog48

Stdlog is an object-oriented library providing leveled logging. It is very useful for cron jobs.

noodlog44

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.

go-log43

Log4j implementation in Go.

logex43

Golang log lib, supports tracking and level, wrap by standard log lib.

journald41

Go implementation of systemd Journal's native API for logging.

go-log35

Log lib supports level and multi handlers.

mlog33

Simple logging module for go, with 5 levels, an optional rotating logfile feature and stdout/stderr output.

distillog31

distilled levelled logging (think of it as stdlib + log levels).

logrusly28

logrus plug-in to send errors to a Loggly.

log26

Structured log interface for Go cleanly separates logging facade from its implementation.

zax26

Integrate Context with Zap logger, which leads to more flexibility in Go logging.

zkits-logger26

A powerful zero-dependency JSON logger.

gomol19

Multiple-output, structured logging for Go with extensible logging outputs.

xylog17

Leveled and structured logging, dynamic fields, high performance, zone management, simple configuration, and readable syntax.

glo16

PHP Monolog inspired logging facility with identical severity levels.

log16

Simple leveled logging wrapper around standard log package.

logrusiowriter16

io.Writer implementation using logrus logger.

go-log14

Simple and configurable Logging in Go, with level, formatters and writers.

kemba14

A tiny debug logging tool inspired by debug, great for CLI tools and applications.

logo12

Golang logger to different configurable writers.

logdump11

Package for multi-level logging.

go-log10

A logging library with stack traces, object dumping and optional timestamps.

log10

An O(1) logging system that allows you to connect one log to multiple writers (e.g. stdout, a file and a TCP connection).

xlog8

Plugin architecture and flexible log system for Go, with level ctrl, multiple log target and custom log format.

zl6

High Developer Experience, zap based logger. It offers rich functionality but is easy to configure.

structy/log5

A simple to use log system, minimalist but with features for debugging and differentiation of messages.

log3

A simple logging framework out of the box.

slf4g3

Simple Logging Facade for Golang: Simple structured logging; but powerful, extendable and customizable, with huge amount of learnings from decades of past logging frameworks.

yell1

Yet another minimalistic logging library.