Logging

62 packages

Packages (62)

logrus

Structured logger for Go.

25,684 2,275

zap

Fast, structured, leveled logging in Go.

24,200 1,502

zerolog

Zero-allocation JSON logger.

12,173 613

spew

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

6,367 374

lumberjack

Simple rolling logger, implements io.WriteCloser.

5,361 646

glog

Leveled execution logs for Go.

3,617 927

tail

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

2,779 504

pp

Colored pretty printer for Go language.

2,027 109

seelog

Logging functionality with flexible dispatching, filtering, and formatting.

1,640 240

log

Structured logging package for Go.

1,377 114

tint

A slog.Handler that writes tinted logs.

1,211 62

log15

Simple, powerful logging for Go.

1,100 145

lazyjournal

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

1,087 27

sentry-go

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

1,037 245

phuslu/log

High performance structured logging.

833 54

slog-multi

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

604 25

slog

Lightweight, configurable, extensible logger for Go.

533 32

httpretty

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

413 16

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.

413 18

sqldb-logger

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

383 22

logutils

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

369 33

logxi

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

360 51

log

Simple, configurable and scalable Structured Logging for Go.

295 19

rollingwriter

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

295 45

go-logger

Simple logger of Go Programs, with level handlers.

289 50

slog-formatter

Common formatters for slog and helpers to build your own.

209 5

glg

glg is simple and fast leveled logging library for Go.

192 17

logger

Minimalistic logging library for Go.

157 16

xlog

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

141 11

ozzo-log

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

123 30

timberjack

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

114 16

go-cronowriter

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

57 8

gone/log

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

51 8

stdlog

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

48 5

journald

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

46 3

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.

44 9

go-log

Log4j implementation in Go.

42 21

logex

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

42 13

go-log

Log lib supports level and multi handlers.

38 19

mlog

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

33 19

zax

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

32 5

distillog

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

31 7

logrusly

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

29 16

log

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

26 3

kemba

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

17 1

log

Simple leveled logging wrapper around standard log package.

17

xylog

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

17 2

glo

PHP Monolog inspired logging facility with identical severity levels.

16 1

logrusiowriter

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

16 1

go-log

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

14 7

logo

Golang logger to different configurable writers.

12 2

go-log

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

11 5

logdump

Package for multi-level logging.

11 3

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

10 1

zl

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

10

xlog

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

8 4

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.

5

structy/log

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

5 1

log

A simple logging framework out of the box.

3

yell

Yet another minimalistic logging library.

1