mirror of
https://github.com/loot/libloot.git
synced 2026-07-27 14:16:01 -07:00
Update spdlog to v1.0.0
This commit is contained in:
+1
-1
@@ -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 "")
|
||||
|
||||
@@ -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;
|
||||
|
||||
@@ -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>
|
||||
|
||||
Reference in New Issue
Block a user