v1.14.0
版本发布时间: 2024-04-26 07:34:34
gabime/spdlog最新发布版本:v1.14.1(2024-04-30 20:34:26)
- Updated bundled fmt to version 10.2.1.
- Mapped Diagnostic Context (MDC) support by @massimiliano96 in https://github.com/gabime/spdlog/pull/2907. MDC is a simple map of key->string values stored in thread local storage whose content will be printed by the loggers. Usage example:
#include "spdlog/mdc.h"
..
spdlog::mdc::put("mdc_key_1", "mdc_value_1");
spdlog::info("Hello, {}", "World!"); // => [2024-04-26 02:08:05.040] [info] [mdc_key_1:mdc_value_1] Hello, World!
- Add milliseconds support to stopwatch by @brodao2 in https://github.com/gabime/spdlog/pull/3034
- Add
std::string_view
overloads for logger accessor by @BenLeadbetter in https://github.com/gabime/spdlog/pull/3023 - Make async_logger::flush() synchronous - wait for the flush operation to complete before returning by @walkerlala in https://github.com/gabime/spdlog/pull/3049
- Use _stat() on Windows to be more UTF8 friendly by @liubing in https://github.com/gabime/spdlog/pull/2978
- Add details about how compile time macros work by @egaban in https://github.com/gabime/spdlog/pull/2981
- Fix typos found by codespell by @DimitriPapadopoulos in https://github.com/gabime/spdlog/pull/3011
- Expose the flusher thread object to user in order to allow setting of thread name and thread affinity when needed by @cohdan in https://github.com/gabime/spdlog/pull/3009
- Fix the problem of compilation failure under MINGW by @NU-LL in https://github.com/gabime/spdlog/pull/3022
- Add missing include in circular_q.h by @magnus-nomono in https://github.com/gabime/spdlog/pull/3026
- Fix #3038 by @Tomas-Zhu in https://github.com/gabime/spdlog/pull/3044
- Don't remove previous defaullt logger from registry in set_default_logger. Fix #3016
- Remove the legacy AnalyzeTemporaryDtors option from .clang-tidy. by @shaharv in https://github.com/gabime/spdlog/pull/3048
- Updated INSTALL.md has to better reflect compiler info by KaganCanSit in https://github.com/gabime/spdlog/pull/3052
- Fixed README.md example by @darallium in https://github.com/gabime/spdlog/pull/3066
Full Changelog: https://github.com/gabime/spdlog/compare/v1.13.0...v1.14.0
Special thanks to @tt4g for helping with community questions and issues.