21 spdlog::set_level(spdlog::level::off);
24 auto dupFilter = std::make_shared<spdlog::sinks::dup_filter_sink_mt>(std::chrono::seconds(
LOG_FILTER_SECS));
27 dupFilter->add_sink(std::make_shared<spdlog::sinks::stdout_color_sink_mt>());
29 dupFilter->add_sink(std::make_shared<spdlog::sinks::syslog_sink_mt>(PROJECT_NAME, LOG_USER, 0,
false));
30 dupFilter->add_sink(std::make_shared<spdlog::sinks::loki_api_sink_mt>(lokiAddr));
31 dupFilter->add_sink(std::make_shared<spdlog::sinks::sentry_api_sink_mt>(sentryAddr));
34 _mainLogger = std::make_shared<spdlog::logger>(PROJECT_NAME, dupFilter);
40 spdlog::set_level(spdlog::level::warn);
42 spdlog::set_level(spdlog::level::info);
MainLogger(const std::string &lokiAddr, const std::string &sentryAddr)
std::shared_ptr< spdlog::logger > _mainLogger