From f99284673325c0aa62226ae92a91c1fa28cf8d344a5690d7c3bb7ae4d0c050e2 Mon Sep 17 00:00:00 2001 From: Luigi Baldoni Date: Fri, 15 May 2020 14:17:17 +0000 Subject: [PATCH 1/2] Accepting request 805860 from home:alois:branches:devel:libraries:c_c++ - Update to version 1.6.0 What's new: * Load log levels from environment variable SPDLOG_LEVEL * New windows eventlog sink. * New tcp sink that sends log messages in tcp to a remote server. * Extend spdlog with your own flags in the log pattern. See wiki for details. * Bump the bundled fmt version to 6.2.0 . Fixes and improvements: * Prevent race condition when SPDLOG_PREVENT_CHILD_FD is defined. * Fix race condition in the filename() function in the file sinks. * Fix ansicolor_sink::set_color(..) - can cause memory violation if user provides a custom color code that points to stack memory. * Optimize cases when string_view is passed to the logger to avoid unnecessary fmt::format. * Support for max files in daily logger. * Fix deprecated warning with C++14 and external fmt lib. * Optimize colos sinks to use std::array instead of map to find color codes. * Fix potential buffer overflow in color_sinks when one of them has a pattern without colors. * Don't include windows.h in common.h. * Resolve erroneous clang-tidy warning about using a moved from pointer. * Fixed numerous clang-tidy warnings. * Added options to to_hex to output hex like hexdump. * Removed the 'SPDLOG_NO_NAME` macro in tweakme.h and cmake. * Added a forward declaration header spdlog\fwd.h . * Moved throw to dedicated function to optimize compile-time and runtime-performance. * Fix a build issue when SPDLOG_PREVENT_CHILD_FD is defined. * Fix issue with using external fmt. * Minor performance optimizations in pattern formatter. * Add log function to the logger API to allow logging with custom timepoint. * Removed meson support. * Fix typos and tabs in the code. * CMake: Fix GNUInstallDirs include location. * CMake: workaround for Unknown extension ".c" for file issue. * CMake: Disabled extra warnings generation by default. Use SPDLOG_BUILD_WARNINGS=ON to enable again. * CMake: Support for precompiled headers with SPDLOG_ENABLE_PCH flag. * CMake: Set minimum version of fmt to 5.3.0. * CMake: Fix tabs, whitespaces and eol. * Tests: removed duplicate entry for count_lines(). * Tests: don't run spdlog-utests and spdlog-utests-ho in parallel. * Tests: Enable running the tests against an installed copy of spdlog. * Tests: Support empty SPDLOG_EOL. OBS-URL: https://build.opensuse.org/request/show/805860 OBS-URL: https://build.opensuse.org/package/show/devel:libraries:c_c++/spdlog?expand=0&rev=30 --- spdlog-1.5.0.tar.gz | 3 --- spdlog-1.6.0.tar.gz | 3 +++ spdlog.changes | 59 +++++++++++++++++++++++++++++++++++++++++++++ spdlog.spec | 2 +- 4 files changed, 63 insertions(+), 4 deletions(-) delete mode 100644 spdlog-1.5.0.tar.gz create mode 100644 spdlog-1.6.0.tar.gz diff --git a/spdlog-1.5.0.tar.gz b/spdlog-1.5.0.tar.gz deleted file mode 100644 index d060f84..0000000 --- a/spdlog-1.5.0.tar.gz +++ /dev/null @@ -1,3 +0,0 @@ -version https://git-lfs.github.com/spec/v1 -oid sha256:b38e0bbef7faac2b82fed550a0c19b0d4e7f6737d5321d4fd8f216b80f8aee8a -size 270416 diff --git a/spdlog-1.6.0.tar.gz b/spdlog-1.6.0.tar.gz new file mode 100644 index 0000000..312b5fb --- /dev/null +++ b/spdlog-1.6.0.tar.gz @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:0421667c9f2fc78e6548d44f7bc5921be0f03e612df384294c16cedb93d967f8 +size 285249 diff --git a/spdlog.changes b/spdlog.changes index 0c4db11..77121be 100644 --- a/spdlog.changes +++ b/spdlog.changes @@ -1,3 +1,62 @@ +------------------------------------------------------------------- +Fri May 15 14:03:27 UTC 2020 - Luigi Baldoni + +- Update to version 1.6.0 + What's new: + * Load log levels from environment variable SPDLOG_LEVEL + * New windows eventlog sink. + * New tcp sink that sends log messages in tcp to a remote + server. + * Extend spdlog with your own flags in the log pattern. See + wiki for details. + * Bump the bundled fmt version to 6.2.0 . + Fixes and improvements: + * Prevent race condition when SPDLOG_PREVENT_CHILD_FD is + defined. + * Fix race condition in the filename() function in the file + sinks. + * Fix ansicolor_sink::set_color(..) - can cause memory + violation if user provides a custom color code that points to + stack memory. + * Optimize cases when string_view is passed to the logger to + avoid unnecessary fmt::format. + * Support for max files in daily logger. + * Fix deprecated warning with C++14 and external fmt lib. + * Optimize colos sinks to use std::array instead of map to + find color codes. + * Fix potential buffer overflow in color_sinks when one of + them has a pattern without colors. + * Don't include windows.h in common.h. + * Resolve erroneous clang-tidy warning about using a moved + from pointer. + * Fixed numerous clang-tidy warnings. + * Added options to to_hex to output hex like hexdump. + * Removed the 'SPDLOG_NO_NAME` macro in tweakme.h and cmake. + * Added a forward declaration header spdlog\fwd.h . + * Moved throw to dedicated function to optimize compile-time + and runtime-performance. + * Fix a build issue when SPDLOG_PREVENT_CHILD_FD is defined. + * Fix issue with using external fmt. + * Minor performance optimizations in pattern formatter. + * Add log function to the logger API to allow logging with + custom timepoint. + * Removed meson support. + * Fix typos and tabs in the code. + * CMake: Fix GNUInstallDirs include location. + * CMake: workaround for Unknown extension ".c" for file issue. + * CMake: Disabled extra warnings generation by default. Use + SPDLOG_BUILD_WARNINGS=ON to enable again. + * CMake: Support for precompiled headers with + SPDLOG_ENABLE_PCH flag. + * CMake: Set minimum version of fmt to 5.3.0. + * CMake: Fix tabs, whitespaces and eol. + * Tests: removed duplicate entry for count_lines(). + * Tests: don't run spdlog-utests and spdlog-utests-ho in + parallel. + * Tests: Enable running the tests against an installed copy of + spdlog. + * Tests: Support empty SPDLOG_EOL. + ------------------------------------------------------------------- Mon Jan 13 19:58:43 UTC 2020 - Luigi Baldoni diff --git a/spdlog.spec b/spdlog.spec index 3e8e8c5..4c69d12 100644 --- a/spdlog.spec +++ b/spdlog.spec @@ -18,7 +18,7 @@ %define _sover 1 Name: spdlog -Version: 1.5.0 +Version: 1.6.0 Release: 0 Summary: C++ logging library License: MIT From 3906ca7bda511898ddee5ad40026f9607eed299ade50e489fd1e81b5a7c88f62 Mon Sep 17 00:00:00 2001 From: Luigi Baldoni Date: Wed, 27 May 2020 07:42:12 +0000 Subject: [PATCH 2/2] Accepting request 809184 from home:alois:branches:devel:libraries:c_c++ - Update to version 1.6.1 * Fixed deadlock in daily_file_sink that happened while cleaning older files. * Fixed ringbuffer_sink::last_raw() and ringbuffer_sink::last_formatted() that didn't return latest elements. OBS-URL: https://build.opensuse.org/request/show/809184 OBS-URL: https://build.opensuse.org/package/show/devel:libraries:c_c++/spdlog?expand=0&rev=31 --- spdlog-1.6.0.tar.gz | 3 --- spdlog-1.6.1.tar.gz | 3 +++ spdlog.changes | 10 ++++++++++ spdlog.spec | 2 +- 4 files changed, 14 insertions(+), 4 deletions(-) delete mode 100644 spdlog-1.6.0.tar.gz create mode 100644 spdlog-1.6.1.tar.gz diff --git a/spdlog-1.6.0.tar.gz b/spdlog-1.6.0.tar.gz deleted file mode 100644 index 312b5fb..0000000 --- a/spdlog-1.6.0.tar.gz +++ /dev/null @@ -1,3 +0,0 @@ -version https://git-lfs.github.com/spec/v1 -oid sha256:0421667c9f2fc78e6548d44f7bc5921be0f03e612df384294c16cedb93d967f8 -size 285249 diff --git a/spdlog-1.6.1.tar.gz b/spdlog-1.6.1.tar.gz new file mode 100644 index 0000000..d28a646 --- /dev/null +++ b/spdlog-1.6.1.tar.gz @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:378a040d91f787aec96d269b0c39189f58a6b852e4cbf9150ccfacbe85ebbbfc +size 285531 diff --git a/spdlog.changes b/spdlog.changes index 77121be..d63a867 100644 --- a/spdlog.changes +++ b/spdlog.changes @@ -1,3 +1,13 @@ +------------------------------------------------------------------- +Wed May 27 07:38:11 UTC 2020 - Luigi Baldoni + +- Update to version 1.6.1 + * Fixed deadlock in daily_file_sink that happened while + cleaning older files. + * Fixed ringbuffer_sink::last_raw() and + ringbuffer_sink::last_formatted() that didn't return latest + elements. + ------------------------------------------------------------------- Fri May 15 14:03:27 UTC 2020 - Luigi Baldoni diff --git a/spdlog.spec b/spdlog.spec index 4c69d12..1c33995 100644 --- a/spdlog.spec +++ b/spdlog.spec @@ -18,7 +18,7 @@ %define _sover 1 Name: spdlog -Version: 1.6.0 +Version: 1.6.1 Release: 0 Summary: C++ logging library License: MIT