Cute Gopher Mascot

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

See More! 🚀

logdump

Package for multi-level logging

See More! 🚀

lumberjack

Simple rolling logger, implements io.WriteCloser

See More! 🚀

distillog

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

See More! 🚀

glg

glg is simple and fast leveled logging library for Go

See More! 🚀

go-log

Log lib supports level and multi handlers

See More! 🚀

go-log

Log4j implementation in Go

See More! 🚀

gomol

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

See More! 🚀

go-logger

Simple logger of Go Programs, with level handlers

See More! 🚀

kemba

A tiny debug logging tool inspired by [debug](https://github.com/visionmedia/debug), great for CLI tools and applications

See More! 🚀

seelog

Logging functionality with flexible dispatching, filtering, and formatting

See More! 🚀

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

See More! 🚀

slog

Lightweight, configurable, extensible logger for Go

See More! 🚀

slog-formatter

Common formatters for slog and helpers to build your own

See More! 🚀

slog-multi

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

See More! 🚀

spew

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

See More! 🚀

sqldb-logger

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

See More! 🚀

stdlog

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

See More! 🚀

xylog

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

See More! 🚀

yell

Yet another minimalistic logging library

See More! 🚀

zap

Fast, structured, leveled logging in Go

See More! 🚀

zax

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

See More! 🚀

zerolog

Zero-allocation JSON logger

See More! 🚀

zkits-logger

A powerful zero-dependency JSON logger

See More! 🚀

zl

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

See More! 🚀

caarlos0/log

Colorful CLI logger

See More! 🚀

httpretty

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

See More! 🚀

journald

Go implementation of systemd Journal's native API for logging

See More! 🚀

lazyjournal

A TUI for reading and filtering logs from journalctl, file system, Docker and Podman containers, as well Kubernetes pods

See More! 🚀

log

Simple, configurable and scalable Structured Logging for Go

See More! 🚀

log

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

See More! 🚀

logger

Minimalistic logging library for Go

See More! 🚀

logrus

Structured logger for Go

See More! 🚀

logrusly

[logrus](https://github.com/sirupsen/logrus) plug-in to send errors to a [Loggly](https://www.loggly.com/)

See More! 🚀

logxi

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

See More! 🚀

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

See More! 🚀

ozzo-log

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

See More! 🚀

sentry-go

Sentry SDK for Go. Helps monitor and track errors with real-time alerts and performance monitoring

See More! 🚀

timberjack

Rolling logger with size-based, time-based, and scheduled clock-based rotation, supporting compression and cleanup

See More! 🚀

xlog

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

See More! 🚀

xlog

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

See More! 🚀

log15

Simple, powerful logging for Go

See More! 🚀

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

See More! 🚀

glo

PHP Monolog inspired logging facility with identical severity levels

See More! 🚀

glog

Leveled execution logs for Go

See More! 🚀

go-cronowriter

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

See More! 🚀

go-log

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

See More! 🚀

gone/log

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

See More! 🚀

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)

See More! 🚀

log

Structured logging package for Go

See More! 🚀

log

Simple leveled logging wrapper around standard log package

See More! 🚀

log

A simple logging framework out of the box

See More! 🚀

logex

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

See More! 🚀

logo

Golang logger to different configurable writers

See More! 🚀

logrusiowriter

`io.Writer` implementation using [logrus](https://github.com/sirupsen/logrus) logger

See More! 🚀

logutils

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

See More! 🚀

mlog

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

See More! 🚀

phuslu/log

High performance structured logging

See More! 🚀

pp

Colored pretty printer for Go language

See More! 🚀

rollingwriter

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

See More! 🚀

structy/log

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

See More! 🚀

tail

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

See More! 🚀

tint

A slog.Handler that writes tinted logs

See More! 🚀