Awesome Go

Logging

63 libraries in this category

gomol

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

19LoggingLibraries for generating and working with log files.
distillog

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

LoggingLogging
glg

glg is simple and fast leveled logging library for Go

LoggingLogging
glo

PHP Monolog inspired logging facility with identical severity levels

LoggingLogging
glog

Leveled execution logs for Go

LoggingLogging
go-cronowriter

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

LoggingLogging
go-log

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

LoggingLogging
go-log

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

LoggingLogging
go-log

Log lib supports level and multi handlers

LoggingLogging
go-log

Log4j implementation in Go

LoggingLogging
go-logger

Simple logger of Go Programs, with level handlers

LoggingLogging
kemba

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

LoggingLogging
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)

LoggingLogging
log

Structured logging package for Go

LoggingLogging
log

Simple leveled logging wrapper around standard log package

LoggingLogging
logdump

Package for multi-level logging

LoggingLogging
lumberjack

Simple rolling logger, implements io.WriteCloser

LoggingLogging
mlog

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

LoggingLogging
phuslu/log

High performance structured logging

LoggingLogging
pp

Colored pretty printer for Go language

LoggingLogging
rollingwriter

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

LoggingLogging
seelog

Logging functionality with flexible dispatching, filtering, and formatting

LoggingLogging
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

LoggingLogging
slog

Lightweight, configurable, extensible logger for Go

LoggingLogging
slog-formatter

Common formatters for slog and helpers to build your own

LoggingLogging
slog-multi

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

LoggingLogging
spew

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

LoggingLogging
sqldb-logger

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

LoggingLogging
stdlog

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

LoggingLogging
structy/log

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

LoggingLogging
tail

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

LoggingLogging
tint

A slog.Handler that writes tinted logs

LoggingLogging
xylog

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

LoggingLogging
yell

Yet another minimalistic logging library

LoggingLogging
zap

Fast, structured, leveled logging in Go

LoggingLogging
zax

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

LoggingLogging
zerolog

Zero-allocation JSON logger

LoggingLogging
zkits-logger

A powerful zero-dependency JSON logger

LoggingLogging
zl

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

LoggingLogging
caarlos0/log

Colorful CLI logger

LoggingLogging
gone/log

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

LoggingLogging
httpretty

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

LoggingLogging
journald

Go implementation of systemd Journal's native API for logging

LoggingLogging
lazyjournal

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

LoggingLogging
log

Simple, configurable and scalable Structured Logging for Go

LoggingLogging
log

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

LoggingLogging
log

A simple logging framework out of the box

LoggingLogging
log15

Simple, powerful logging for Go

LoggingLogging
logex

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

LoggingLogging
logger

Minimalistic logging library for Go

LoggingLogging
logo

Golang logger to different configurable writers

LoggingLogging
logrus

Structured logger for Go

LoggingLogging
logrusiowriter

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

LoggingLogging
logrusly

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

LoggingLogging
logutils

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

LoggingLogging
logxi

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

LoggingLogging
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

LoggingLogging
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

LoggingLogging
ozzo-log

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

LoggingLogging
sentry-go

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

LoggingLogging
timberjack

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

LoggingLogging
xlog

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

LoggingLogging
xlog

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

LoggingLogging