Library

loguru v2.2.0

Versionv2.2.0
Stars★ 1,909
Released2026-09-10

A lightweight C++ logging library

Release notes

First release in a long time. Everything merged since v2.1.0.

## Breaking changes
* `LOGURU_CATCH_SIGABRT` replaced by `struct SignalOptions` (#151, #161)
* `cmake_minimum_required` raised to 3.12 (#257)

## New features
* CMake support with install, CPack, and pkgconfig (#215 and friends)
* Syslog output via `LOGURU_SYSLOG` (#156)
* `va_list` versions of the core logging functions (#208)
* `LOGURU_USE_LOCALE` to make locale usage optional (#216)
* `DLOG_SCOPE_F`, `DVLOG_SCOPE_F`, and `DLOG_SCOPE_FUNCTION` (#282)
* Optional header line with column names (#123)
* lnav log format (#123, #250)
* Colors decided by `isatty()`, plus alacritty support (#127, #272)
* Option to disable thread-local storage names (#149)
* Scope logging now uses fmtlib when `LOGURU_USE_FMTLIB` is set (#145)

## Bug fixes
* Flush thread is now stopped and joined in `shutdown()` (#281)
* Fixed off-by-one in snprintf buffer size (#278)
* Fixed `CHECK_EQ_F(int64, int64)` (#185)
* Fixed exclusive file lock on Windows (#214)
* Fixed `DLOG_IF_F` macro expansion on MSVC 2022 (#237)
* Fixed `home_dir()` on Windows and MinGW (#131, #170)
* Fixed control character check on platforms where `char` is unsigned (#280)
* Static analyzer cleanups: member initializers, virtual destructor, allocation checks (#283)

## Platform support
* FreeBSD and OpenBSD (#245)
* Solaris/illumos (#152)
* MinGW (#233)
* Older macOS and PowerPC (#276)
* Stack traces only enabled with glibc (#206)
* `-Werror` no longer on by default in CMake builds; opt in with `LOGURU_WARNINGS_AS_ERRORS` (#255)

## Docs
* vcpkg install instructions (#227)
* Android logcat callback example (#228)

**Full changelog**: https://github.com/emilk/loguru/compare/v2.1.0...v2.2.0

Share this resource


Discovered 2026-09-11 Source GitHub Archive 2026-09 →