# apex/log

Structured logging package for Go.

Repository: https://github.com/apex/log
Canonical: https://ross.abutalabs.com/products/apex-log
Language: Go
License: MIT
License Family: permissive
Topics: golang, logger, logging, apex-logs
Last push: 2023-11-03T18:30:34+00:00

## Health v2 (maintenance only)
Score: 32/100 (v2, computed 2026-09-03T02:20:16.233290+00:00)
- activity 0, release rhythm 35, longevity 100
- inputs: {"age_days": 3908, "days_push": 1034, "days_rel": null, "gap_med": null, "n_releases_24m": 0}
- flags: no_releases
- formula: round(0.45*activity + 0.35*rhythm + 0.20*longevity); archived -> min(score, 10)

## Adoption (not part of the score)
Stars 1376, forks 110 (observed 2026-08-28T04:04:33.318922+00:00)

## What it is
apex/log is a structured logging package for Go, inspired by Logrus and designed with log centralization in mind. It provides a simple API with pluggable handlers for JSON, logfmt, CLI-friendly output, and shipping logs to services like Elasticsearch, Graylog, Kinesis, and Papertrail.

## Use cases
- add structured logging to a Go application
- ship logs to Elasticsearch or Graylog from Go
- format logs as JSON or logfmt
- filter logs by level in Go
- fan out logs to multiple destinations
- human-friendly colored CLI log output

## When to choose
- you want a simple, Logrus-style structured logging API in Go
- you need pluggable handlers for centralized log collection
- you want lightweight logging with field-based context

## When to avoid
- you need a highly active project with frequent updates
- you prefer Go's standard library slog or zerolog/zap performance characteristics
- you need Apex Logs, which is a commercial service

## Facets
- artifact type: library
- maturity: maintenance
- function: logging
- domain: developer-tools, backend
- platform: go, cross-platform
- tags: structured-logging, logrus-inspired, log-handlers, cli-logging

## Member repositories
- apex/log (main) score 32

## Provenance
- Observed fields: from GitHub, fetched 2026-08-28T04:04:33.318922+00:00.
- Health v2: computed from the inputs above; adoption is never an input.
- Inferred fields (summary, facets, guidance): AI-extracted, prompt v1, taxonomy v1, on 2026-08-30T04:40:28.888327+00:00, confidence not recorded.
  - readme: https://github.com/apex/log (fetched 2026-08-28T04:04:33.318922+00:00, sha 00c98d34fa09)
- Data as of 2026-08-30T08:39:29.467469+00:00.
