17#include <QPlainTextEdit>
39 Q_ARG(QString, QString::fromUtf8(str.data(),
static_cast<int>(str.size())).trimmed()));
58template <
typename Factory = spdlog::synchronous_factory>
61 return Factory::template create<sinks::qt_sink_mt>(logger_name, qt_object, meta_method);
64template <
typename Factory = spdlog::synchronous_factory>
67 return Factory::template create<sinks::qt_sink_st>(logger_name, qt_object, meta_method);
70template <
typename Factory = spdlog::synchronous_factory>
73 return Factory::template create<sinks::qt_sink_mt>(logger_name, qt_object, meta_method);
76template <
typename Factory = spdlog::synchronous_factory>
79 return Factory::template create<sinks::qt_sink_st>(logger_name, qt_object, meta_method);
82template <
typename Factory = spdlog::synchronous_factory>
85 return Factory::template create<sinks::qt_sink_mt>(logger_name, qt_object, meta_method);
88template <
typename Factory = spdlog::synchronous_factory>
91 return Factory::template create<sinks::qt_sink_st>(logger_name, qt_object, meta_method);
void sink_it_(const details::log_msg &msg) override
qt_sink(QObject *qt_object=nullptr, const std::string &meta_method="")
std::shared_ptr< logger > qt_logger_mt(const std::string &logger_name, QTextEdit *qt_object, const std::string &meta_method="append")
fmt::basic_string_view< char > string_view_t
std::shared_ptr< logger > qt_logger_st(const std::string &logger_name, QTextEdit *qt_object, const std::string &meta_method="append")
fmt::basic_memory_buffer< char, 250 > memory_buf_t