GeezerVison is showing cpp.libhunt.com — quill latest version
quill latest version
v12.1.0
quill v12.1.0 Release Notes
Release Date: 2026-07-15 //
5 months
ago
-
- ⚡️ Updated bundled
libfmt to v12.2.0.
- Fixed append-mode
RotatingFileSink recovery for base filenames without an extension, so DateAndTime rotated files such as application.20260622_120000 are counted towards max_backup_files instead of accumulating across restarts. (#938)
- 🛠 Fixed Windows builds that include
<windows.h> before Quill wide-string logging headers. (#941)
- 🛠 Fixed size-based
RotatingFileSink rotation after an externally deleted active file is reopened. (#945)
- 🛠 Fixed bounded queue writes after the reader drains the queue without crossing the reader-position publish batch. (#946)
- 🛠 Fixed
%s timestamp formatting in GmtTime mode on non-UTC machines. (#947)
- Fixed a huge page mapping leak on Linux where
munmap failed with EINVAL on queue destruction. Allocations now request MAP_HUGE_2MB explicitly and round the mapping size up to a 2 MiB multiple.
- Fixed the transit event buffer expanding to twice the configured
transit_events_hard_limit.
Backend::start() now throws on the caller thread when transit_events_soft_limit or transit_events_hard_limit is misconfigured, instead of terminating the process from the backend thread.
- 🛠 Fixed
BackendTscClock calls overlapping Backend::stop(). Backend restarts now reconfigure and republish one stable clock allocation, so a conversion already in progress can safely finish without unbounded retained clocks.
- 🛠 Fixed potential queue corruption when logging
std::error_code with locale-dependent or user-provided error categories. The category name and message are now snapshotted once and reused for encoding.
- 🛠 Fixed
RotatingJsonFileSink replaying a stale json payload after a failed size-based rotation.
- Literal
{ and } in format_pattern are now escaped, while existing doubled-brace spelling remains compatible. Invalid attribute format specifications are rejected during formatter construction.
timestamp_pattern now rejects the time-of-day-embedding modifiers %c, %Ec, %EX, %OH, %OI, %OM and
%OS, like %X, which silently froze at a cached value.
- 🛠 Fixed logging of
std::pair, std::tuple and std::array with const-qualified element types, most notably dereferenced std::map iterators (std::pair<Key const, T>), which previously failed to compile.
- The backend singleton lock file is now opened with
O_CLOEXEC and O_NOFOLLOW.
- The
std::filesystem::path codec now reads the path via native(), avoiding two temporary string allocations on the hot path.
- 👍
Codec<std::tuple> now fails with a clear static_assert when the decoded tuple is not formattable. A custom formatter for the complete tuple remains supported even when elements have no standalone formatter.
- 🚚
TransitEventBuffer expansion now moves the existing events instead of default-constructing and discarding a FormatBuffer allocation for every slot.
- 🛠 Fixed a C++ data race in
BackendTscClock snapshot reads when resynchronization reused a slot concurrently.
- 🛠 Fixed SIGTERM and SIGINT handling when the backend is running without a valid logger.
- Unbounded queue maximum capacities are now rounded up to the next power of two and validated against the initial capacity.
- 🌲 Sink exceptions no longer prevent later sinks from receiving the same log or metric event.
- 🌲 Logging macros now evaluate logger and runtime log-level expressions once per invocation.
- 🍎 CPU-affinity failures are now reported on macOS, FreeBSD, and NetBSD instead of being silently ignored.
- Minutely and hourly rotation boundaries now stay wall-clock aligned after a late-triggered rotation, instead of permanently drifting off the initial rotation time point.
- 🛠 Fixed a number of minor bugs and hardened edge cases across the frontend, backend, sinks and codecs, including transactional startup rotation recovery and console colour handling around trailing newlines.
- 👻 Clarified the custom-codec exception contract: sizing may throw before reservation, while encoding and decoding must not.
- 🌲 Documented the
QUILL_LOG_LEVEL environment variable. It is now validated during first logger creation; invalid values (including backtrace) throw QuillError, do not register a partial logger, and can be retried.
create_or_get_sink<TSink>() now throws when a sink with the same name already exists with an incompatible type (in builds with RTTI), instead of returning it for an undefined-behaviour cast.
- Documented that
CsvWriter writes fields verbatim and added an opt-in quill::utility::csv_escape_field() helper for RFC 4180 escaping of fields containing commas, quotes or line breaks.
- 🌲 Backend callback logging no longer self-deadlocks when its own blocking queue is full; additional backend-thread records are dropped instead.
- Exceptions from custom sink periodic tasks are now reported through
error_notifier instead of terminating the process.
- Concurrent
Backend::stop() callers now wait for the in-progress shutdown to complete before returning.
- 0️⃣ Default JSON sinks now suffix named arguments that collide with built-in JSON fields, avoiding duplicate object keys.
- 📇 Oversized runtime source paths are now truncated safely instead of overflowing metadata offsets.
- 🔧 Negative backend and file-sync intervals are now rejected during configuration.
- 🛠 Fixed Windows
std::filesystem::path decoding when byte-packed arguments are not aligned for wchar_t.
- 🛠 Fixed rotating
CsvWriter header writes on Windows after failed rotation recovery, so the header is appended instead of overwriting the beginning of the active CSV file.
Previous changes from v12.0.0
-
🚀 This release introduces asynchronous metrics, broadens codec coverage, and adds API and reliability improvements across backend lifecycle handling, sinks, and platform-specific paths.
📇 Quill can now offload both logs and metric samples through the same backend worker, with metric metadata registered up front and each publish call enqueueing only a compact, fixed-size sample record on the hot path.
- Added asynchronous metrics support, including metric registration APIs,
Logger::publish_metric(), the METRIC(...) macro, and backend sink delivery through Sink::write_metric().
- 📄 Added an optional
PrometheusSink and examples for both a custom metric sink and Prometheus-backed export: custom metric sink example, Prometheus sink example
- Added per-thread mapped diagnostic context (MDC) support with
Logger::set_mdc(), Logger::erase_mdc(), Logger::clear_mdc(), the %(mdc) pattern attribute, and BackendOptions::mdc_format_pattern for global MDC rendering.
- ➕ Added std codec support for
std::variant, std::bitset, std::complex, and std::error_code.
- Extended
quill/std/Chrono.h codec support to match bundled fmt's C++20 calendar formatters, including std::chrono::year, month, day, weekday, and year_month_day when available.
- ➕ Added C++20 module support groundwork, including export markers and macro cleanup.
- 🏁 Switched to native file handles (
CreateFile/WriteFile) on Windows for improved write throughput compared to FILE*.
- Added strict
Frontend::create_sink() and Frontend::create_logger() APIs for callers that want duplicate names to fail instead of reusing existing objects.
- ➕ Added
CsvWriter::close() for deterministic logger removal and file closure before backend shutdown.
- Added
BackendOptions::ensure_monotonic_output_timestamps to correct regular log and metric output timestamps that would otherwise move backwards. Backtrace records keep their original capture timestamps.
- 📌
BackendOptions::cpu_affinity now supports pinning the backend to multiple CPUs.
- ➕ Added a fallback to
fs::absolute when fs::canonical fails on RAM disks. (#910)
- 🚦 Hardened backend, signal-handler, manual-backend, and teardown paths with more robust startup and shutdown behavior.
- 🛠 Fixed multiple codec, sink rotation, named-argument, queue, and platform-specific edge cases.
- 🛠 Fixed an infinite loop in the backend when the user-provided
error_notifier throws. (#915)
- 📚 Generated a Doxygen tag file for downstream documentation linking. (#914)
- 🛠 Fix rotating sink reopen failure when the disk is full (#919)
- 🛠 Fixes DLL unload on Windows, drain remaining log messages in stop() when backend thread was terminated externally (#925)
- 🛠 Fixed stale named arguments from a pooled
TransitEvent. The named_args pointer is now consistently nullptr for log statements without named arguments instead of occasionally being an empty vector (#926)
- 🚤
StopWatch now samples its elapsed time on the frontend at the log call site instead of when the backend formats the message, so logged values no longer include backend latency.
RotatingFileSink in append mode now counts rotated files left behind by previous runs towards max_backup_files for all RotationNamingScheme values, removing the oldest files on startup when they exceed the limit instead of letting them accumulate across restarts. Previously only the Index scheme (and the Date scheme for same-day files) recovered existing files, so Date and DateAndTime files from earlier runs were never cleaned up. Recovered append-mode files are not removed when overwrite_rolled_files is set to false. (#930)
|