Releases: gabime/spdlog
version 1.16.0
- Bump bundled {fmt} library to 12.0.0
- Use std::getenv #3414 by @kfeng123 in #3415
- Remove unnecessary and inconsistent "final" from color sinks by @vadz in #3430
- Fix ringbuffer sink for zero buffer size by @gabime in #3436
- Add option to override CMAKE_DEBUG_POSTFIX by @joshuachp in #3433
- Update README.md by @yalov in #3437
- Added timeout for TCP calls such as connect, send, recv by @LowLevelLore in #3432
- Run tests in the order they are declared by @xvitaly in #3451
- Remove the fileapi.h include in os-inl.h by @MasonAngelio in #3444
Full Changelog: v1.15.3...v1.16.0
Special thanks to @tt4g for assisting with community questions and issues.
Version 1.15.3
- Bumped bundled {fmt} library to 11.2.0 by @gabime in #3399
- Fixed incorrect behavior in
dup_filter_sinkwhen reporting skipped messages by @SleepingSoul in #3390 - Fixed MSVC C4530 warning when exceptions are disabled by @roeas in #3393
- Added support for modifying
max-sizeandmax-filesinrotating_file_sinkafter creation by @gabime in #3397 - Added
spdlog::register_or_replace(new_logger)to safely replace existing loggers in the registry by @gabime in #3398 - Fixed broken links to the wiki and local references by @cgringmuth in #3377 and #3378, and by @non-descriptive in #3381
Full Changelog: v1.15.2...v1.15.3
Special thanks to @tt4g for assisting with community questions and issues.
Version 1.15.2
- Upgraded bundled {fmt} to version 11.1.4 (faa0a7a)
- Fixed #3360, discovered by OSS-Fuzz regarding the
%Dformat flag, in #3361 - Fixed #3352:
%z(UTC offset) on Apple and POSIX.1-2024-conforming platforms by @toh-ableton in #3366 - Updated README with ALT Linux installation instructions by @lubyagin in #3338
Full Changelog: v1.15.1...v1.15.2
Special thanks to @tt4g for assisting with community questions and issues.
Version 1.15.1
- Update bundled
fmtversion to 11.1.3 by @gabime in #3332 - Use
fwrite_unlocked()if available by @gabime in #3276 and #3318 - On-demand truncation for basic file sinks by @matteodelseppia in #3280
- Allow manual rotation of
rotating_file_sinkby @hjs-ast in #3269 - Make
null_sinkfinalby @gabime in #3267 - Fix: Add explicit
fmt::andstd::to avoid ambiguous calls by @LiAuTraver in #3259 - Fix: Pass
/utf-8only when the compiler is MSVC by @miyanyan in #3260 - Fix: Support
bin_to_hex()when usingstd::formatby @koniarik in #3315 - Support custom environment variables for
load_env_levelsby @ken-matsui in #3327 - Fix: Added a lock to
rotate_now()by @matteodelseppia in #3281 - Fix: Update
to_string_viewfunction forfmt11.1 by @chenrui333 in #3301 - Fix: Remove unused
to_string_viewoverload infmt >= 11.1by @jdrouhard in #3314 - Fix: Use
string_view_literalsto resolve issues #3287 and #3233 by @yalov in #3291 - Fix: Added a lock to
set_color_mode(..)inansicolor_sinkby @gabime in #3323 - Fix: Corrected comment in
daily_file_sinkby @F1F88 in #3249 - Fix: Compatibility with fmtlib 11.1.1 by @yachoor in #3331
Full Changelog: v1.15.0...v1.15.1
Special thanks to @tt4g for helping with community questions and issues
Version 1.15.0
What's Changed
- Update bundled fmt to 11.0.2 by @gabime in #3236
- Add wide character formatting and output support to console in wincolor_sink. by @DominikGrabiec in #3092
- Allow customization of syslog_sink by @Silex in #3124
- make example compatible with fmt 11 by @ziyao233 in #3130
- Fix building with
FMT_ENFORCE_COMPILE_STRINGby @AJIOB in #3137 - fix: set
/Zc:__cplusplusand/MPto MSVC only by @zjyhjqs in #3139 - V1.x : fixed "suggest override" errors for gcc 8.5 and gcc 9.1 by @esmirno in #3158
- Add info about max_files in the docstrings of hourly/daily file sinks by @themightyoarfish in #3170
- use std::lock_guard instead of std::unique_lock by @wsehjk in #3179
- fix/issue-3101: fix the issue where mdc ignores SPDLOG_NO_TLS by @Allen-20180115 in #3184
- Update mdc.h error message by @gabime in #3185
- [docs] Update conan install command in README by @uilianries in #3172
- Update CMakeLists.txt, Fix spelling errors by @zgzhengSEU in #3193
- Fix warning - extra ';' for -Wextra-semi by @hydai in #3198
- Improve Cross-Platform Build Instructions in Documentation by @Mq-b in #3229
- Exchange promise for condition_variable when flushing (fixes #3221) by @Oipo in #3228
- Ensure flush callback gets called in move-assign operator by @Oipo in #3232
- Make flush async again in async logger to prevent crashes and hangs by @gabime in #3235
- Update README.md by @gabime in #3240
- utf8_to_wstrbuf now handles invalid utf8 sequences by @captainurist in #3244 and #3245
- Added tsan option to CMake and CI by @gabime in #3237 and #3247
/pull/3244
Full changelog: v1.14.1...v1.15.0
Special thanks to @tt4g for helping with community questions and issues
Version 1.14.1
Version 1.14.0
- Updated bundled fmt to version 10.2.1.
- Mapped Diagnostic Context (MDC) support by @massimiliano96 in #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 #3034
- Add
std::string_viewoverloads for logger accessor by @BenLeadbetter in #3023 - Make async_logger::flush() synchronous - wait for the flush operation to complete before returning by @walkerlala in #3049
- Use _stat() on Windows to be more UTF8 friendly by @liubing in #2978
- Add details about how compile time macros work by @egaban in #2981
- Fix typos found by codespell by @DimitriPapadopoulos in #3011
- Expose the flusher thread object to user in order to allow setting of thread name and thread affinity when needed by @cohdan in #3009
- Fix the problem of compilation failure under MINGW by @NU-LL in #3022
- Add missing include in circular_q.h by @magnus-nomono in #3026
- Fix #3038 by @Tomas-Zhu in #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 #3048
- Updated INSTALL.md has to better reflect compiler info by KaganCanSit in #3052
- Fixed README.md example by @darallium in #3066
Full Changelog: v1.13.0...v1.14.0
Special thanks to @tt4g for helping with community questions and issues.
Version 1.13.0
Release Notes
Enhancements
- Qt Sink: Allow for darker colors for light backgrounds (#2817). Thanks to @krawq.
- Set
CMAKE_BUILD_TYPEonly for single-config generators (#2839). Thanks to @moritz-h. - Provide
spdlog_header_onlyin build directory export (#2846). Thanks to @robertmaynard. - Add
SPDLOG_TO_VERSIONto compare spdlog version (#2853). Thanks to @kegechen. - Support
async_overflow_policy::discard_new(#2876). Thanks to @walkerlala. - Make
syslog_sink.h'ssyslog_prio_from_levelprotected (#2918). Thanks to @shannonbooth. - Fix OS availability check of
pthread_threadid_npfor iOS (#2897). Thanks to @lowdesertpunk. - Add
.git-blame-ignore-revsto ignore clang-format related commits (#2899). Thanks to @lowdesertpunk. - Match
SPDLOG_CONSTEXPR_FUNCtoFMT_CONSTEXPR(#2901). Thanks to @kkraus14.
Bug Fixes
- Check
fd_is not nullptr infile_helperto prevent possible crash if disk is full (#2972). - Fix encoding issue in qt_sinks (#2862). Thanks to @neothenil and @tt4g .
- Fix wrong thread_id (TID) in
systemd_sink.h(#2919). Thanks to @M010. - Update
example.cppto fix the vector issue inbin_example(#2963). Thanks to @zhuzhzh. - Fix MSVC compile flag for no exceptions (#2974). Thanks to @Programicus.
- Fix bug in
circular_q::size()(#2820). - Fix link to fmt license file (#2967).
Maintenance
- Added and updated various tests for
circular_q. - Removed obsolete part from CMake configuration files (#2871). Thanks to @albert-github.
- Removed
policy_maxfromcmake_minimum_required(..). - Updated
clang-formatto google style and updated various formatting scripts. - Bumped catch2
Special thanks to @tt4g for helping with community questions and issues.
Version 1.12.0
- Support for external fmtlib versions 10.x (#2694). Thanks @H1X4Dev and @mguludag.
- Better support for std::format (#2359, #2544, #2680, #2688). Thanks @eli-b , @sylveon and @bachittle.
- Added new qt color sink. Logs to
QTextEditwidget with some nice colors. - Update
#includeto a deprecated fmt header (#2545) .Thanks @kromain. - Fixes and impovements to
dup_filter_sink(#2549, #2563). Thanks @zydxhs and @zhuyadong. - Fix unnecessary empty backtrace begin/end logs (#2568). Thanks @koldi.
- Fixed variable name in
msvc_sink(#2573). Thanks @naddu77. - Add system includes (
SPDLOG_SYSTEM_INCLUDES) cmake option (#2575). Thanks @dpayne. - Improve dequeue of the async queue (@2587, #2588 ). Thanks @alokpr.
- Fix
tcp_clientsink for FreeBSD (#2590). Thanks @segoon. - Support linux/musl libc (#2589). Thanks @kraj.
- Support
newlib Clibrary configurations without tm_gmtoff field (#2600). Thanks @igrr. - Fix type of event id in win_eventlog_sink (#2598). Thanks @Tagl.
- Fix -Wshadow warnings in
spdlog::sinks::dist_sink(#2599). Thanks @robinlinden. - Spelling corrections (#2606, #2732). Thanks @albert-github and @zencatalyst.
- Add
sync()function to file_helper (#2343). Thanks @espkk. - Add a trivial
callback_sink(#2610). Thanks @maghorbani. - Fix unexpected delimiter at start of line in to_hex formatter (#2627). Thanks @starsunyzl.
- Fix MinGW build issue on example (#2642). Thanks @zEuS0390.
- Add optional TID definition to the
systemd sink(#2619). Thanks @chardin-cpi. - Added
apply_logger_env_levels()(#2648, #2649). Thanks @afshinpir. - Support utf8 in
msvc_sink(#2651). Thanks @Demonese. - Better handling of utf to wchar (66407f5).
- Use catch v3 for tests (#2656, #2659). Thanks @xvitaly and @seker.
- New kafka sink (#2655). Thanks @vbirds and @SpriteOvO.
- Fix os namespace in systemd_sink.h (#2668). Thanks @MyNameIsLame.
- Enable
systemd_sinktests in linux pipeline (#2669). Thanks @MyNameIsLame. - Fix stdout_sink_base::log's
fflush()behaviour inconsistency (#2646). Thanks @25077667. - Fix for missing pthread_threadid_np in macOS < 10.6 and PowerPC (#2715). Thanks @barracuda156.
- Fix ringbuffer_sink moving warning (#2722). Thanks @jamesruan.
- Update INSTALL doc (#2775). Thanks @7starsea.
- Fix warning in qt_sinks.h (#2781). Thanks @dayfixer.
- Remove IPv4 limitation from tcp_client (#2790). Thanks @Simon-Janos.
- Fix android sink when message is not loggable (#2801). Thanks @lucasrangit.
Special thanks to @tt4g for helping with community questions and issues.
Version 1.11.0
- Update to fmt lib version 9.1.0 #2346, #2485, #2512, #2517 . Thanks @sylveon, @YunchengLiu, @tt4g, @tycho and @vitaut
- Fix template instantiation warning #2336 . Thanks @aengusjiang
- Event handlers improvements #2342, #2375 . Thanks @espkk and @kslattery
- Allow modifying the used Android buffer ID #2358. Thanks @tiolan
- Fix clone in async test #2364. Thanks @stkw0
- Custom formatting optimization #2365. Thanks @conr2d
- Fix C++14 builds for gcc 4.x (#2333) #2372 . Thanks @kslattery
- Add minor version to CMake's
SOVERSION#2376 - Allow compilation with FMT_ENFORCE_COMPILE_STRING #2381. Thanks @john4744
- Fix
pkg-configgeneration #2383. Thanks @alexshpilkin - Remove unused code from
null_mutex#2385. Thanks @panzhongxian - Fix redundant
std::move#2396. Thanks @polesapart - Remove the empty file if in first period in hourly logger #2386. Thanks @panzhongxian
- Add
reset_overrun_counter()function to the async logging #2399 Thanks @bergen4 - Set C++20 in CMake when SPDLOG_USE_STD_FORMAT option is turned on #2402. Thanks @cookcocck
- Fix mingw test #2415. Thanks @neheb
- Support for any
std::chrono::durationtype inflush_every(..)#2439. Thanks @LucasChollet - Fix implicit casting of level_enum #2443. Thanks @ibmibmibm
- Comment fix #2445. Thanks @Hish15
- Fix gcc 4.x build #2449. Thanks @Simon-Janos
- Add openSUSE installation instructions #2468. Thanks @LorenDB
- Fixed missing include file in
stopwatch.h#2434. Thanks @fabianbuettner - Support for omitting source info by defining
SPDLOG_NO_SOURCE_LOC#2476. Thanks @nigels-com - Added
SPDLOG_BUILD_PICbuild option to CMake #2475. Thanks @nigels-com - Fix include
windows.h#2495. Thanks @panicgh - Workaround gcc 12 warnings #2498, #2499 . Thanks @offa
- Migrate to Github Actions CI #2500. Thanks @offa
- Replace iterator difference with
std::distance#2509 Thanks @kin4stat - Export targets file to build directory at configure time #2514, #2515. Thanks @puneetmatharu
- MongoDB sink improvements #2519. Thanks @sandorzm
- Fix shadow warning in dist_sink #2431. Thanks @MohammadKanan for reporting.
- Fixed msvc warning C4800 in win_eventlog_sink
- Check
IsDebuggerPresent()inmsvc_sinkbefore doing actual work #2408. To use old behavior pass false to themsvc_sink constructor. Thanks @DominikGrabiec and @sylveon
Special thanks to @tt4g for helping with community questions and issues.