Skip to content

Release 2.7.0

Choose a tag to compare

@github-actions github-actions released this 16 Oct 13:39
· 179 commits to main since this release

[v2.7.0] - 2026-10-11

  • C++20 modules: import bq.log; as an alternative to #include "bq_log/bq_log.h", with no change to the logging code. BqLog_CategoryLogGenerator also writes a .cppm for each category log class (import bq.business_log;). See Integration Guide.
  • Macro-free fast log (C++20): modules do not export macros, so with import bq.log; the fast mode is written as log.fast_info<"...">(args...) (plus fast_verbose … fast_fatal), with an optional category as the first template argument. Same cost as BQ_LOG_FAST_*, real IDE support, and not bound to one log object per call site. See API Reference — fast mode.
  • Package managers: Homebrew (brew install bqlog, library and tools), vcpkg (tools via the tools feature) and NuGet (C# bindings with native libraries for six platforms). The CMake install provides find_package(BqLog) and pkg-config.
  • Multi-process: several processes may log into the same directory, each with its own recovery data; a log with log.recovery=false no longer touches the disk.
  • Recovery: the window grows from the last 2 runs to the last 16; bq::log::get_recovery_capability() (in every wrapper) reports whether the platform supports recovery.
  • Compatibility: the ABI changed; headers, wrappers and library must be upgraded together. A category log written by an older BqLog_CategoryLogGenerator no longer compiles (its empty-base macro is now BQ_EBCO), so regenerate it. On Windows, cmake --install now puts BqLog.dll under bin/; the release archives keep their layout.
  • Bug fixes:
    • fast mode: a call site could be initialized twice by concurrent first calls; the format registry had no size limit.
    • recovery: a crash mid-batch replayed the whole batch; fast-log metadata in continuation segments could be lost on restart; text-file recovery wrote no RECOVER END marker (#90).
    • formatting: sign, rounding and range of floating-point values (#82); format specs longer than 10 characters (#83); integer sign, 0x/0b/octal prefixes, zero padding and centre fill (#89, #91).
    • time zone: UTC-0:30 lost its sign, out-of-range offsets were accepted (#84).
    • config: line continuation hung on the last line and aborted on a blank one (#86).
    • decoder: malformed files, short writes and broken segment chains are rejected instead of producing partial output (#81, #85).
    • wide strings: reading a UTF-16/UTF-32 argument could run past the end of a memory page.
    • prebuilt desktop libraries were missing the Go bridge.
  • Thanks to @mvanslobbe for #81, #82, #83, #84, #86, #89, #90 and #91.