Skip to content

Commit

Permalink
Merge branch 'main' into 'develop'
Browse files Browse the repository at this point in the history
Fix building with MSVC on Windows

See merge request njoy/tools!7
  • Loading branch information
whaeck committed Nov 9, 2024
2 parents 74faab0 + 0cd22f6 commit 0258fbd
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions src/tools/Log.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -16,19 +16,19 @@ namespace tools {
*/
class Log {

static auto initialize_logger() {
static std::shared_ptr<spdlog::logger> initialize_logger() {

auto instance = spdlog::stdout_color_st( "njoy" );
std::shared_ptr<spdlog::logger> instance = spdlog::stdout_color_st( "njoy" );
instance->set_pattern( "[%^%l%$] %v" );
#ifndef NDEBUG
instance->set_level( spdlog::level::debug );
#endif
return instance;
}

static auto& logger() {
static std::shared_ptr<spdlog::logger>& logger() {

static auto instance = initialize_logger();
static std::shared_ptr<spdlog::logger> instance = initialize_logger();
return instance;
}

Expand Down

0 comments on commit 0258fbd

Please sign in to comment.