|
|
@ -12,11 +12,12 @@
|
|
|
|
|
|
|
|
|
|
|
|
namespace spdlog {
|
|
|
|
namespace spdlog {
|
|
|
|
|
|
|
|
|
|
|
|
#ifndef SPDLOG_DISABLE_GLOBAL_LOGGER
|
|
|
|
|
|
|
|
static std::shared_ptr s_context =
|
|
|
|
static std::shared_ptr s_context =
|
|
|
|
|
|
|
|
#ifndef SPDLOG_DISABLE_GLOBAL_LOGGER
|
|
|
|
std::make_unique<details::context>(std::make_unique<logger>("", std::make_unique<sinks::stdout_color_sink_mt>()));
|
|
|
|
std::make_unique<details::context>(std::make_unique<logger>("", std::make_unique<sinks::stdout_color_sink_mt>()));
|
|
|
|
#else
|
|
|
|
#else
|
|
|
|
static std::shared_ptr s_context = std::make_unique<details::context>();
|
|
|
|
std::make_unique<details::context>(); // empty context
|
|
|
|
#endif
|
|
|
|
#endif
|
|
|
|
|
|
|
|
|
|
|
|
void set_context(std::shared_ptr<details::context> context) { s_context = std::move(context); }
|
|
|
|
void set_context(std::shared_ptr<details::context> context) { s_context = std::move(context); }
|
|
|
|