Update spdlog to v1.0.0

This commit is contained in:
Oliver Hamlet
2018-08-14 17:53:37 +01:00
parent a247617365
commit 287fdf03fa
3 changed files with 7 additions and 4 deletions
+1 -1
View File
@@ -139,7 +139,7 @@ ExternalProject_Add(testing-plugins
ExternalProject_Add(spdlog
PREFIX "external"
URL "https://github.com/gabime/spdlog/archive/v0.17.0.tar.gz"
URL "https://github.com/gabime/spdlog/archive/v1.0.0.tar.gz"
CONFIGURE_COMMAND ""
BUILD_COMMAND ""
INSTALL_COMMAND "")
+4 -3
View File
@@ -25,6 +25,7 @@
#define LOOT_API_HELPERS_LOGGING
#include <spdlog/spdlog.h>
#include <spdlog/sinks/base_sink.h>
#include "loot/enum/log_level.h"
@@ -42,11 +43,11 @@ public:
}
protected:
void _sink_it(const spdlog::details::log_msg& msg) override {
callback(mapFromSpdlog(msg.level), msg.raw.str().c_str());
void sink_it_(const spdlog::details::log_msg& msg) override {
callback(mapFromSpdlog(msg.level), fmt::to_string(msg.raw).c_str());
}
void _flush() override {}
void flush_() override {}
private:
std::function<void(LogLevel, const char*)> callback;
+2
View File
@@ -25,6 +25,8 @@
#ifndef LOOT_API_SORTING_PLUGIN_SORTER
#define LOOT_API_SORTING_PLUGIN_SORTER
#define FMT_NO_FMT_STRING_ALIAS
#include <map>
#include <spdlog/spdlog.h>