#include #include #include #include #include namespace logging { std::vector sinks; int init(bool use_stdout) { auto f = std::make_unique("%^|%L|: %v%$", spdlog::pattern_time_type::local, std::string("")); // disable eol spdlog::set_formatter(std::move(f)); sinks.clear();//clear existing sinks if (use_stdout)//if we use stdout window then init it as well sinks.push_back(std::make_shared()); return 0;//all ok } }