Script 'mail_helper' called by obssrc
Hello community,

here is the log from the commit of package spdlog for openSUSE:Factory checked 
in at 2021-08-16 10:09:03
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Comparing /work/SRC/openSUSE:Factory/spdlog (Old)
 and      /work/SRC/openSUSE:Factory/.spdlog.new.1899 (New)
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++

Package is "spdlog"

Mon Aug 16 10:09:03 2021 rev:22 rq:911919 version:1.9.2

Changes:
--------
--- /work/SRC/openSUSE:Factory/spdlog/spdlog.changes    2021-08-11 
11:47:17.497741126 +0200
+++ /work/SRC/openSUSE:Factory/.spdlog.new.1899/spdlog.changes  2021-08-16 
10:14:00.118924459 +0200
@@ -1,0 +2,18 @@
+Fri Aug 13 06:18:26 UTC 2021 - Luigi Baldoni <aloi...@gmx.com>
+
+- Update to version 1.9.2
+  * Fixed clang compiler errors when using spdlog in c++20.
+  * Fixed the Qt sinks to accurately trim the newline chars.
+  * Improved and simplified Qt sinks implementation.
+  * Fixed macro SPDLOG_LEVEL_NAME_xxx to always translate to the
+    spdlog namespace.
+  * Fixed typo in readme.
+  * Fixed the MongoDB sink compilation in c++11.
+  * Fixed double include of same file in thread_pool.h .
+  * Ensure that the CMake exported package is relocatable.
+  * Remove std::distance usage for possible performance gain.
+  * Support of inclusion of bin_to_hex.h in any order with
+    spdlog.h.
+  * Fixed install instructions for "header only" dir.
+
+-------------------------------------------------------------------

Old:
----
  spdlog-1.9.1.tar.gz

New:
----
  spdlog-1.9.2.tar.gz

++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++

Other differences:
------------------
++++++ spdlog.spec ++++++
--- /var/tmp/diff_new_pack.K5Uubj/_old  2021-08-16 10:14:00.570923882 +0200
+++ /var/tmp/diff_new_pack.K5Uubj/_new  2021-08-16 10:14:00.574923877 +0200
@@ -18,7 +18,7 @@
 
 %define _sover  1
 Name:           spdlog
-Version:        1.9.1
+Version:        1.9.2
 Release:        0
 Summary:        C++ logging library
 License:        MIT

++++++ spdlog-1.9.1.tar.gz -> spdlog-1.9.2.tar.gz ++++++
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/spdlog-1.9.1/.travis.yml new/spdlog-1.9.2/.travis.yml
--- old/spdlog-1.9.1/.travis.yml        2021-07-27 11:26:34.000000000 +0200
+++ new/spdlog-1.9.2/.travis.yml        2021-08-12 13:10:50.000000000 +0200
@@ -29,6 +29,14 @@
       - g++-9
     sources:
       - ubuntu-toolchain-r-test
+      
+# gcc 11.0
+addons: &gcc11
+  apt:
+    packages:
+      - g++-11
+    sources:
+      - ubuntu-toolchain-r-test
 
 
 # Clang 3.5
@@ -74,11 +82,17 @@
       os: linux
       addons: *gcc7
       
-     # Test gcc-9: C++17, Build=Release
+    # Test gcc-9: C++17, Build=Release
     - env: GCC_VERSION=9 BUILD_TYPE=Release CPP=17
       os: linux
       addons: *gcc9
 
+    # Test gcc-11.0: C++20, Build=Debug
+    - env: GCC_VERSION=11 BUILD_TYPE=Debug CPP=20 ASAN=Off
+      os: linux
+      dist: bionic
+      addons: *gcc11
+      
     # Test clang-3.5: C++11, Build=Release
     - env: CLANG_VERSION=3.5 BUILD_TYPE=Release CPP=11
       os: linux
@@ -106,8 +120,8 @@
       os: linux
       dist: bionic
       addons: *clang12
+          
                         
-
 before_script:
   - if [ -n "$GCC_VERSION" ]; then export CXX="g++-${GCC_VERSION}" 
CC="gcc-${GCC_VERSION}"; fi
   - if [ -n "$CLANG_VERSION" ]; then export CXX="clang++-${CLANG_VERSION}" 
CC="clang-${CLANG_VERSION}"; fi
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/spdlog-1.9.1/CMakeLists.txt 
new/spdlog-1.9.2/CMakeLists.txt
--- old/spdlog-1.9.1/CMakeLists.txt     2021-07-27 11:26:34.000000000 +0200
+++ new/spdlog-1.9.2/CMakeLists.txt     2021-08-12 13:10:50.000000000 +0200
@@ -307,7 +307,8 @@
     install(EXPORT spdlog DESTINATION ${export_dest_dir} NAMESPACE spdlog:: 
FILE ${config_targets_file})
 
     include(CMakePackageConfigHelpers)
-    configure_file("${project_config_in}" "${project_config_out}" @ONLY)
+    configure_package_config_file("${project_config_in}" 
"${project_config_out}"
+        INSTALL_DESTINATION ${export_dest_dir})
 
     write_basic_package_version_file("${version_config_file}" COMPATIBILITY 
SameMajorVersion)
     install(FILES "${project_config_out}" "${version_config_file}" DESTINATION 
"${export_dest_dir}")
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/spdlog-1.9.1/README.md new/spdlog-1.9.2/README.md
--- old/spdlog-1.9.1/README.md  2021-07-27 11:26:34.000000000 +0200
+++ new/spdlog-1.9.2/README.md  2021-08-12 13:10:50.000000000 +0200
@@ -4,7 +4,7 @@
 
 ## Install 
 #### Header only version
-Copy the source 
[folder](https://github.com/gabime/spdlog/tree/v1.x/include/spdlog) to your 
build tree and use a C++11 compiler.
+Copy the include 
[folder](https://github.com/gabime/spdlog/tree/v1.x/include/spdlog) to your 
build tree and use a C++11 compiler.
 
 #### Static lib version (recommended - much faster compile times)
 ```console
@@ -144,7 +144,7 @@
 #### Backtrace support
 ```c++
 // Debug messages can be stored in a ring buffer instead of being logged 
immediately.
-// This is useful in order to display debug logs only when really nededed 
(e.g. when error happens).
+// This is useful in order to display debug logs only when really needed (e.g. 
when error happens).
 // When needed, call dump_backtrace() to see them.
 
 spdlog::enable_backtrace(32); // Store the latest 32 messages in a buffer. 
Older messages will be dropped.
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/spdlog-1.9.1/cmake/spdlogConfig.cmake.in 
new/spdlog-1.9.2/cmake/spdlogConfig.cmake.in
--- old/spdlog-1.9.1/cmake/spdlogConfig.cmake.in        2021-07-27 
11:26:34.000000000 +0200
+++ new/spdlog-1.9.2/cmake/spdlogConfig.cmake.in        2021-08-12 
13:10:50.000000000 +0200
@@ -1,6 +1,8 @@
 # Copyright(c) 2019 spdlog authors
 # Distributed under the MIT License (http://opensource.org/licenses/MIT)
 
+@PACKAGE_INIT@
+
 find_package(Threads REQUIRED)
 
 set(SPDLOG_FMT_EXTERNAL @SPDLOG_FMT_EXTERNAL@)
@@ -13,3 +15,5 @@
 
 
 include("${CMAKE_CURRENT_LIST_DIR}/${config_targets_file}")
+
+check_required_components(spdlog)
\ No newline at end of file
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/spdlog-1.9.1/include/spdlog/common-inl.h 
new/spdlog-1.9.2/include/spdlog/common-inl.h
--- old/spdlog-1.9.1/include/spdlog/common-inl.h        2021-07-27 
11:26:34.000000000 +0200
+++ new/spdlog-1.9.2/include/spdlog/common-inl.h        2021-08-12 
13:10:50.000000000 +0200
@@ -34,7 +34,7 @@
 {
     auto it = std::find(std::begin(level_string_views), 
std::end(level_string_views), name);
     if (it != std::end(level_string_views))
-        return 
static_cast<level::level_enum>(std::distance(std::begin(level_string_views), 
it));
+        return static_cast<level::level_enum>(it - 
std::begin(level_string_views));
 
     // check also for "warn" and "err" before giving up..
     if (name == "warn")
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/spdlog-1.9.1/include/spdlog/common.h 
new/spdlog-1.9.2/include/spdlog/common.h
--- old/spdlog-1.9.1/include/spdlog/common.h    2021-07-27 11:26:34.000000000 
+0200
+++ new/spdlog-1.9.2/include/spdlog/common.h    2021-08-12 13:10:50.000000000 
+0200
@@ -116,29 +116,26 @@
 using memory_buf_t = fmt::basic_memory_buffer<char, 250>;
 using wmemory_buf_t = fmt::basic_memory_buffer<wchar_t, 250>;
 
+template<class T>
+using remove_cvref_t = typename std::remove_cv<typename 
std::remove_reference<T>::type>::type;
+
+// clang doesn't like SFINAE disabled constructor in std::is_convertible<> so 
have to repeat the condition from basic_format_string here,
+// in addition, fmt::basic_runtime<Char> is only convertible to 
basic_format_string<Char> but not basic_string_view<Char>
+template<class T, class Char = char>
+struct is_convertible_to_basic_format_string
+    : std::integral_constant<bool,
+          std::is_convertible<T, fmt::basic_string_view<Char>>::value || 
std::is_same<remove_cvref_t<T>, fmt::basic_runtime<Char>>::value>
+{};
+
 #ifdef SPDLOG_WCHAR_TO_UTF8_SUPPORT
 #    ifndef _WIN32
 #        error SPDLOG_WCHAR_TO_UTF8_SUPPORT only supported on windows
-#    else
-template<typename T>
-struct is_convertible_to_wstring_view : std::is_convertible<T, wstring_view_t>
-{};
-template<class T>
-struct is_convertible_to_wformat_string : std::is_convertible<T, 
fmt::wformat_string<>>
-{};
 #    endif // _WIN32
-#else
-template<typename>
-struct is_convertible_to_wstring_view : std::false_type
-{};
-template<class>
-struct is_convertible_to_wformat_string : std::false_type
-{};
-#endif // SPDLOG_WCHAR_TO_UTF8_SUPPORT
+#endif     // SPDLOG_WCHAR_TO_UTF8_SUPPORT
 
 template<class T>
-struct is_convertible_to_basic_format_string
-    : std::integral_constant<bool, std::is_convertible<const T &, 
fmt::format_string<>>::value || is_convertible_to_wformat_string<T>::value>
+struct is_convertible_to_any_format_string : std::integral_constant<bool, 
is_convertible_to_basic_format_string<T, char>::value ||
+                                                                              
is_convertible_to_basic_format_string<T, wchar_t>::value>
 {};
 
 #if defined(SPDLOG_NO_ATOMIC_LEVELS)
@@ -173,13 +170,13 @@
     n_levels
 };
 
-#define SPDLOG_LEVEL_NAME_TRACE string_view_t("trace", 5)
-#define SPDLOG_LEVEL_NAME_DEBUG string_view_t("debug", 5)
-#define SPDLOG_LEVEL_NAME_INFO string_view_t("info", 4)
-#define SPDLOG_LEVEL_NAME_WARNING string_view_t("warning", 7)
-#define SPDLOG_LEVEL_NAME_ERROR string_view_t("error", 5)
-#define SPDLOG_LEVEL_NAME_CRITICAL string_view_t("critical", 8)
-#define SPDLOG_LEVEL_NAME_OFF string_view_t("off", 3)
+#define SPDLOG_LEVEL_NAME_TRACE spdlog::string_view_t("trace", 5)
+#define SPDLOG_LEVEL_NAME_DEBUG spdlog::string_view_t("debug", 5)
+#define SPDLOG_LEVEL_NAME_INFO spdlog::string_view_t("info", 4)
+#define SPDLOG_LEVEL_NAME_WARNING spdlog::string_view_t("warning", 7)
+#define SPDLOG_LEVEL_NAME_ERROR spdlog::string_view_t("error", 5)
+#define SPDLOG_LEVEL_NAME_CRITICAL spdlog::string_view_t("critical", 8)
+#define SPDLOG_LEVEL_NAME_OFF spdlog::string_view_t("off", 3)
 
 #if !defined(SPDLOG_LEVEL_NAMES)
 #    define SPDLOG_LEVEL_NAMES                                                 
                                                            \
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/spdlog-1.9.1/include/spdlog/details/thread_pool.h 
new/spdlog-1.9.2/include/spdlog/details/thread_pool.h
--- old/spdlog-1.9.1/include/spdlog/details/thread_pool.h       2021-07-27 
11:26:34.000000000 +0200
+++ new/spdlog-1.9.2/include/spdlog/details/thread_pool.h       2021-08-12 
13:10:50.000000000 +0200
@@ -27,7 +27,6 @@
     terminate
 };
 
-#include <spdlog/details/log_msg_buffer.h>
 // Async msg to move to/from the queue
 // Movable only. should never be copied
 struct async_msg : log_msg_buffer
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/spdlog-1.9.1/include/spdlog/fmt/bin_to_hex.h 
new/spdlog-1.9.2/include/spdlog/fmt/bin_to_hex.h
--- old/spdlog-1.9.1/include/spdlog/fmt/bin_to_hex.h    2021-07-27 
11:26:34.000000000 +0200
+++ new/spdlog-1.9.2/include/spdlog/fmt/bin_to_hex.h    2021-08-12 
13:10:50.000000000 +0200
@@ -6,6 +6,7 @@
 #pragma once
 
 #include <cctype>
+#include <spdlog/common.h>
 
 //
 // Support for logging binary data as hex
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/spdlog-1.9.1/include/spdlog/logger.h 
new/spdlog-1.9.2/include/spdlog/logger.h
--- old/spdlog-1.9.1/include/spdlog/logger.h    2021-07-27 11:26:34.000000000 
+0200
+++ new/spdlog-1.9.2/include/spdlog/logger.h    2021-08-12 13:10:50.000000000 
+0200
@@ -102,10 +102,8 @@
         log(loc, lvl, string_view_t{msg});
     }
 
-    // T cannot be statically converted to neither string_view, nor 
wstring_view and nor format string
-    template<class T, typename std::enable_if<!std::is_convertible<const T &, 
spdlog::string_view_t>::value &&
-                                                  
!is_convertible_to_basic_format_string<const T &>::value,
-                          int>::type = 0>
+    // T cannot be statically converted to format string (including 
string_view)
+    template<class T, typename 
std::enable_if<!is_convertible_to_any_format_string<const T &>::value, 
int>::type = 0>
     void log(source_loc loc, level::level_enum lvl, const T &msg)
     {
         log(loc, lvl, "{}", msg);
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/spdlog-1.9.1/include/spdlog/sinks/mongo_sink.h 
new/spdlog-1.9.2/include/spdlog/sinks/mongo_sink.h
--- old/spdlog-1.9.1/include/spdlog/sinks/mongo_sink.h  2021-07-27 
11:26:34.000000000 +0200
+++ new/spdlog-1.9.2/include/spdlog/sinks/mongo_sink.h  2021-08-12 
13:10:50.000000000 +0200
@@ -33,7 +33,7 @@
     {
         try
         {
-            client_ = std::make_unique<mongocxx::client>(mongocxx::uri{uri});
+            client_ = 
spdlog::details::make_unique<mongocxx::client>(mongocxx::uri{uri});
             db_name_ = db_name;
             coll_name_ = collection_name;
         }
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/spdlog-1.9.1/include/spdlog/sinks/qt_sinks.h 
new/spdlog-1.9.2/include/spdlog/sinks/qt_sinks.h
--- old/spdlog-1.9.1/include/spdlog/sinks/qt_sinks.h    2021-07-27 
11:26:34.000000000 +0200
+++ new/spdlog-1.9.2/include/spdlog/sinks/qt_sinks.h    2021-08-12 
13:10:50.000000000 +0200
@@ -4,7 +4,7 @@
 #pragma once
 
 //
-// Custom sink for QPlainTextEdit or QTextEdit and its children(QTextBrowser...
+// Custom sink for QPlainTextEdit or QTextEdit and its childs(QTextBrowser...
 // etc) Building and using requires Qt library.
 //
 
@@ -13,188 +13,81 @@
 #include "spdlog/details/synchronous_factory.h"
 #include "spdlog/sinks/base_sink.h"
 
-#include <QObject>
-#include <QPlainTextEdit>
 #include <QTextEdit>
-
-namespace _spdlog_p {
-namespace _sinks_p {
-//
-// Private class for QTextEdit and its derivatives
-//
-class qtextedit_sink_p : public QObject
-{
-    Q_OBJECT
-public:
-    qtextedit_sink_p(QTextEdit *textedit = nullptr)
-    {
-        if (textedit != nullptr)
-        {
-            textedit_ = textedit;
-            connect(this, &qtextedit_sink_p::append_text, textedit_, 
&QTextEdit::append);
-        }
-    }
-
-    ~qtextedit_sink_p() {}
-
-    void append(const spdlog::string_view_t &str)
-    {
-        emit append_text(QString::fromUtf8(str.data(), 
static_cast<int>(str.size() - 2)));
-    }
-
-signals:
-    void append_text(const QString &);
-
-private:
-    QTextEdit *textedit_ = nullptr;
-};
-
-//
-// Private class for QPlainTextEdit
-//
-class qplaintextedit_sink_p : public QObject
-{
-    Q_OBJECT
-public:
-    qplaintextedit_sink_p(QPlainTextEdit *textedit = nullptr)
-    {
-        if (textedit != nullptr)
-        {
-            textedit_ = textedit;
-            connect(this, &qplaintextedit_sink_p::append_text, textedit_, 
&QPlainTextEdit::appendPlainText);
-        }
-    }
-
-    ~qplaintextedit_sink_p() {}
-
-    void append(const spdlog::string_view_t &str)
-    {
-        emit append_text(QString::fromUtf8(str.data(), 
static_cast<int>(str.size() - 2)));
-    }
-
-signals:
-    void append_text(const QString &);
-
-private:
-    QPlainTextEdit *textedit_ = nullptr;
-};
-} // namespace _sinks_p
-} // namespace _spdlog_p
+#include <QPlainTextEdit>
 
 //
-// qtextedit_sink class
+// qt_sink class
 //
 namespace spdlog {
 namespace sinks {
-template<typename Mutex>
-class qtextedit_sink : public base_sink<Mutex>
-{
+template <typename Mutex> class qt_sink : public base_sink<Mutex> {
 public:
-    qtextedit_sink(QTextEdit *textedit = nullptr)
-    {
-        if (textedit != nullptr)
-        {
-            textedit_p = 
std::make_shared<_spdlog_p::_sinks_p::qtextedit_sink_p>(textedit);
-        }
-        else
-        {
-            throw spdlog_ex("Error opening QTextEdit");
-        }
-    }
-
-    ~qtextedit_sink()
-    {
-        flush_();
-    }
-
-protected:
-    void sink_it_(const details::log_msg &msg) override
-    {
-        memory_buf_t formatted;
-        base_sink<Mutex>::formatter_->format(msg, formatted);
-        string_view_t str_v = string_view_t(formatted.data(), 
formatted.size());
-        textedit_p->append(str_v);
-    }
-
-    void flush_() override {}
+  qt_sink(QObject *qt_object = nullptr, const std::string &meta_method = "") {
+      qt_object_ = qt_object;
+      meta_method_ = meta_method;
+  }
 
-private:
-    std::shared_ptr<_spdlog_p::_sinks_p::qtextedit_sink_p> textedit_p = 
nullptr;
-};
-
-//
-// qplaintextedit_sink class
-//
-template<typename Mutex>
-class qplaintextedit_sink : public base_sink<Mutex>
-{
-public:
-    qplaintextedit_sink(QPlainTextEdit *textedit = nullptr)
-    {
-        if (textedit != nullptr)
-        {
-            textedit_p = 
std::make_shared<_spdlog_p::_sinks_p::qplaintextedit_sink_p>(textedit);
-        }
-        else
-        {
-            throw spdlog_ex("Error opening QPlainTextEdit");
-        }
-    }
-
-    ~qplaintextedit_sink()
-    {
-        flush_();
-    }
+  ~qt_sink() { flush_(); }
 
 protected:
-    void sink_it_(const details::log_msg &msg) override
-    {
-        memory_buf_t formatted;
-        base_sink<Mutex>::formatter_->format(msg, formatted);
-        string_view_t str_v = string_view_t(formatted.data(), 
formatted.size());
-        textedit_p->append(str_v);
-    }
+  void sink_it_(const details::log_msg &msg) override {
+    memory_buf_t formatted;
+    base_sink<Mutex>::formatter_->format(msg, formatted);
+    string_view_t str = string_view_t(formatted.data(), formatted.size());
+    QMetaObject::invokeMethod(qt_object_, meta_method_.c_str(), 
Qt::AutoConnection,
+     Q_ARG(QString, QString::fromUtf8(str.data(), 
static_cast<int>(str.size())).trimmed()));
+  }
 
-    void flush_() override {}
+  void flush_() override {}
 
 private:
-    std::shared_ptr<_spdlog_p::_sinks_p::qplaintextedit_sink_p> textedit_p = 
nullptr;
+  QObject *qt_object_ = nullptr;
+  std::string meta_method_;
 };
 
 #include "spdlog/details/null_mutex.h"
 #include <mutex>
-using qtextedit_sink_mt = qtextedit_sink<std::mutex>;
-using qtextedit_sink_st = qtextedit_sink<spdlog::details::null_mutex>;
-
-using qplaintextedit_sink_mt = qplaintextedit_sink<std::mutex>;
-using qplaintextedit_sink_st = 
qplaintextedit_sink<spdlog::details::null_mutex>;
-
+using qt_sink_mt = qt_sink<std::mutex>;
+using qt_sink_st = qt_sink<spdlog::details::null_mutex>;
 } // namespace sinks
 
 //
 // Factory functions
 //
-template<typename Factory = spdlog::synchronous_factory>
-inline std::shared_ptr<logger> qtextedit_logger_mt(const std::string 
&logger_name, QTextEdit *qtextedit = nullptr)
-{
-    return Factory::template create<sinks::qtextedit_sink_mt>(logger_name, 
qtextedit);
+template <typename Factory = spdlog::synchronous_factory>
+inline std::shared_ptr<logger>
+qt_logger_mt(const std::string &logger_name, QTextEdit* qt_object, const 
std::string &meta_method = "append") {
+  return Factory::template create<sinks::qt_sink_mt>(logger_name, qt_object, 
meta_method);
+}
+
+template <typename Factory = spdlog::synchronous_factory>
+inline std::shared_ptr<logger>
+qt_logger_st(const std::string &logger_name, QTextEdit* qt_object, const 
std::string &meta_method = "append") {
+  return Factory::template create<sinks::qt_sink_st>(logger_name, qt_object, 
meta_method);
+}
+
+template <typename Factory = spdlog::synchronous_factory>
+inline std::shared_ptr<logger>
+qt_logger_mt(const std::string &logger_name, QPlainTextEdit* qt_object , const 
std::string &meta_method = "appendPlainText") {
+    return Factory::template create<sinks::qt_sink_mt>(logger_name, qt_object, 
meta_method);
 }
 
-template<typename Factory = spdlog::synchronous_factory>
-inline std::shared_ptr<logger> qtextedit_logger_st(const std::string 
&logger_name, QTextEdit *qtextedit = nullptr)
-{
-    return Factory::template create<sinks::qtextedit_sink_st>(logger_name, 
qtextedit);
+template <typename Factory = spdlog::synchronous_factory>
+inline std::shared_ptr<logger>
+qt_logger_st(const std::string &logger_name, QPlainTextEdit* qt_object, const 
std::string &meta_method = "appendPlainText") {
+    return Factory::template create<sinks::qt_sink_st>(logger_name, qt_object, 
meta_method);
 }
 
-template<typename Factory = spdlog::synchronous_factory>
-inline std::shared_ptr<logger> qplaintextedit_logger_mt(const std::string 
&logger_name, QPlainTextEdit *qplaintextedit = nullptr)
-{
-    return Factory::template 
create<sinks::qplaintextedit_sink_mt>(logger_name, qplaintextedit);
+template <typename Factory = spdlog::synchronous_factory>
+inline std::shared_ptr<logger>
+qt_logger_mt(const std::string &logger_name, QObject* qt_object, const 
std::string &meta_method) {
+    return Factory::template create<sinks::qt_sink_mt>(logger_name, qt_object, 
meta_method);
 }
 
-template<typename Factory = spdlog::synchronous_factory>
-inline std::shared_ptr<logger> qplaintextedit_logger_st(const std::string 
&logger_name, QPlainTextEdit *qplaintextedit = nullptr)
-{
-    return Factory::template 
create<sinks::qplaintextedit_sink_st>(logger_name, qplaintextedit);
+template <typename Factory = spdlog::synchronous_factory>
+inline std::shared_ptr<logger>
+qt_logger_st(const std::string &logger_name, QObject* qt_object, const 
std::string &meta_method) {
+    return Factory::template create<sinks::qt_sink_st>(logger_name, qt_object, 
meta_method);
 }
 } // namespace spdlog
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/spdlog-1.9.1/include/spdlog/version.h 
new/spdlog-1.9.2/include/spdlog/version.h
--- old/spdlog-1.9.1/include/spdlog/version.h   2021-07-27 11:26:34.000000000 
+0200
+++ new/spdlog-1.9.2/include/spdlog/version.h   2021-08-12 13:10:50.000000000 
+0200
@@ -5,6 +5,6 @@
 
 #define SPDLOG_VER_MAJOR 1
 #define SPDLOG_VER_MINOR 9
-#define SPDLOG_VER_PATCH 0
+#define SPDLOG_VER_PATCH 2
 
 #define SPDLOG_VERSION (SPDLOG_VER_MAJOR * 10000 + SPDLOG_VER_MINOR * 100 + 
SPDLOG_VER_PATCH)

Reply via email to