updated build system
This commit is contained in:
parent
bb79480f76
commit
c0e9549b82
@ -23,6 +23,7 @@
|
||||
#if defined(PROJECT_ENABLE_SPDLOG)
|
||||
#include <chrono>
|
||||
|
||||
#include "spdlog/async.h"
|
||||
#include "spdlog/sinks/stdout_color_sinks.h"
|
||||
#include "spdlog/spdlog.h"
|
||||
#endif // defined(PROJECT_ENABLE_SPDLOG)
|
||||
@ -33,12 +34,6 @@
|
||||
#include "utils/path.hpp"
|
||||
#endif // defined(PROJECT_REQUIRE_ALPINE) && !defined (PROJECT_IS_MINGW)
|
||||
|
||||
#if defined(PROJECT_ENABLE_SPDLOG)
|
||||
namespace {
|
||||
std::shared_ptr<spdlog::logger> console_sink;
|
||||
}
|
||||
#endif // defined(PROJECT_ENABLE_SPDLOG)
|
||||
|
||||
namespace monitarr {
|
||||
auto project_initialize() -> bool {
|
||||
#if defined(PROJECT_REQUIRE_ALPINE) && !defined(PROJECT_IS_MINGW)
|
||||
@ -60,7 +55,7 @@ auto project_initialize() -> bool {
|
||||
spdlog::flush_every(std::chrono::seconds(10));
|
||||
spdlog::set_pattern("%Y-%m-%d|%T.%e|%^%l%$|%v");
|
||||
|
||||
console_sink = spdlog::stdout_color_mt("console");
|
||||
spdlog::create_async<spdlog::sinks::stdout_color_sink_mt>("console");
|
||||
#endif // defined(PROJECT_ENABLE_SPDLOG)
|
||||
|
||||
#if defined(PROJECT_ENABLE_LIBSODIUM)
|
||||
|
Loading…
x
Reference in New Issue
Block a user