1#include <Logger/Logger.h>
10 static std::string log_name(
"-1");
13 const std::string config_path = AsaApi::Tools::GetCurrentDir() +
"/config.json";
14 std::ifstream file{config_path};
21 nlohmann::json config;
25 log_name = config[
"settings"].value(
"StaticLogPath",
"");
33 static std::vector<spdlog::sink_ptr> sinks{
34 std::make_shared<spdlog::sinks::wincolor_stdout_sink_mt>(),
35 std::make_shared<spdlog::sinks::rotating_file_sink_mt>(
38 : spdlog::sinks::default_daily_file_name_calculator::
40 API::Tools::GetCurrentDir() +
"/logs/ArkApi_" + std::to_string(GetCurrentProcessId()) +
".log"),
ARK_API std::vector< spdlog::sink_ptr > &APIENTRY GetLogSinks()