qmetrics.net

Zerolog

Zero-allocation structured JSON logger for Go programs

Zerolog is a Go package focused on fast JSON (or CBOR) log output with a chaining API. It targets low allocation logging and integrates with context, HTTP handlers, and log/slog.

Overview

Zerolog provides structured logging for Go applications where events are encoded as JSON by default. Its chaining API is designed to avoid allocations and reflection on the hot path compared with many traditional loggers.

Developers attach typed key-value fields to events, select levels from trace through panic, and must end chains with Msg or Msgf for output to occur. A global logger can write to standard error at trace unless the global level is raised or logging is disabled entirely.

Features include sampling, hooks, sub-loggers with extra context, optional pretty console output, stack traces for errors, multi-writer output, and HTTP middleware via the hlog package. Binary CBOR encoding is available behind a build tag, and a slog.Handler bridges the standard library slog API to zerolog.

Auxiliary writers such as ConsoleWriter trade efficiency for readability during development. Benchmarks in the project compare allocation counts and latency against other Go logging libraries.

Key features

  • JSON and CBOR encoding
  • Chaining leveled API
  • Context and slog integration
  • net/http hlog helpers
  • Hooks and sampling
  • ConsoleWriter pretty output
  • Multi-level writers
  • Typed contextual fields

Use cases

  • Production JSON service logs
  • Low-allocation Go microservices
  • HTTP request logging middleware
  • Unified slog and zerolog pipelines
  • Development-friendly console traces

Tags

Similar software

Uptime Kuma

Self-hosted uptime monitoring with status pages and alerts

Uptime Kuma is a self-hosted monitoring tool for checking whether services stay online. It covers many probe types and can notify you through numerous messaging and email channels.

★ 95k⟳ yesterdayMIT
Open Source Alternative to:Pingdom

World Monitor

Real-time global intelligence dashboard for news and geopolitics

World Monitor combines live news, market data, and geopolitical signals on interactive world maps. Available on the web, as desktop builds, a terminal UI, CLI, SDKs, and an MCP server.

★ 91.3k⟳ todayAGPL-3.0
Open Source Alternative to:Liveuamap

Netdata

Per-second full-stack infrastructure observability platform

Netdata collects metrics, logs, and traces where they are generated, with per-second resolution, built-in dashboards, alerts, and machine learning anomaly detection on every metric.

★ 81.7k⟳ todayGPL-3.0
Open Source Alternative to:Application InsightsBetterStack+8

Grafana

Composable observability and data visualization platform

Grafana queries, visualizes, and alerts on metrics, logs, and traces from many backends. Teams build and share dashboards to explore operational data.

★ 78.2k⟳ todayAGPL-3.0
Open Source Alternative to:BetterStackNew Relic

Prometheus

Open-source metrics monitoring and time series database

Prometheus collects metrics from configured targets, evaluates rules, and can raise alerts. It stores time series data and exposes a query language called PromQL.

★ 67.9k⟳ yesterdayApache-2.0
Open Source Alternative to:PRTG Network Monitor

Sentry

Developer error tracking and performance monitoring

Sentry is a debugging platform for detecting, tracing, and fixing application issues. SDKs connect code to error, performance, replay, and related signals in one workflow.

★ 45.9k⟳ todaySource-available