# emilk/loguru

A lightweight C++ logging library

Repository: https://github.com/emilk/loguru
Canonical: https://ross.abutalabs.com/products/emilk-loguru
Language: C++
License: Unlicense
License Family: permissive
Last push: 2026-07-31T12:11:42+00:00

## Health v2 (maintenance only)
Score: 66/100 (v2, computed 2026-09-02T17:46:02.011165+00:00)
- activity 95, release rhythm 8, longevity 100
- inputs: {"age_days": 4182, "days_push": 33, "days_rel": null, "gap_med": null, "n_releases_24m": 0}
- flags: none
- formula: round(0.45*activity + 0.35*rhythm + 0.20*longevity); archived -> min(score, 10)

## Adoption (not part of the score)
Stars 1907, forks 278 (observed 2026-08-28T04:05:52.620737+00:00)

## What it is
Loguru is a lightweight, dependency-free C++ logging library consisting of just two files. It offers verbosity levels, assertions, abort handling with cleaned-up stack traces, and user-installable callbacks for custom log output.

## Use cases
- add logging to a C++ application with minimal setup
- print stack traces when the program aborts or crashes
- log to multiple files with different verbosity levels
- display severe log messages on-screen in a game or app via callbacks
- replace glog with a faster, simpler logging library

## When to choose
- you want a small, fast C++ logger with no dependencies
- you need human-readable, grep-friendly log output
- you want stack traces on fatal errors and signals
- you need custom log callbacks for on-screen display

## When to avoid
- you need structured or JSON log output
- you require distributed tracing or log aggregation integrations
- you need async logging with advanced sinks like syslog or logstash

## Facets
- artifact type: library
- maturity: stable
- function: logging
- domain: developer-tools, backend
- platform: cpp, cross-platform, windows
- tags: stack-traces, header-only-friendly, no-dependencies, fatal-error-handling, verbosity-levels, linux, macos

## Member repositories
- emilk/loguru (main) score 66

## Provenance
- Observed fields: from GitHub, fetched 2026-08-28T04:05:52.620737+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-30T03:11:15.811982+00:00, confidence not recorded.
  - readme: https://github.com/emilk/loguru (fetched 2026-08-28T04:05:52.620737+00:00, sha edcd32b0b9fb)
- Data as of 2026-08-30T08:39:29.467469+00:00.
