diff --git a/src/tools/Log.hpp b/src/tools/Log.hpp index 521f0d2..cbe861d 100644 --- a/src/tools/Log.hpp +++ b/src/tools/Log.hpp @@ -16,9 +16,9 @@ namespace tools { */ class Log { - static auto initialize_logger() { + static static std::shared_ptr initialize_logger() { - auto instance = spdlog::stdout_color_st( "njoy" ); + static std::shared_ptr instance = spdlog::stdout_color_st( "njoy" ); instance->set_pattern( "[%^%l%$] %v" ); #ifndef NDEBUG instance->set_level( spdlog::level::debug ); @@ -26,9 +26,9 @@ class Log { return instance; } - static auto& logger() { + static static std::shared_ptr& logger() { - static auto instance = initialize_logger(); + static static std::shared_ptr instance = initialize_logger(); return instance; }