Skip to content

Commit

Permalink
C4LogSystem::GetOrCreate: Fix registration not happening
Browse files Browse the repository at this point in the history
  • Loading branch information
Fulgen301 committed Aug 28, 2024
1 parent 358c184 commit df6b112
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/C4Log.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -328,7 +328,9 @@ std::shared_ptr<spdlog::logger> C4LogSystem::GetOrCreate(std::string name, C4Log
return logger;
}

return CreateLogger(std::move(name), std::move(options));
auto logger = CreateLogger(std::move(name), std::move(options));
spdlog::register_logger(logger);
return logger;
}

void C4LogSystem::EnableDebugLog(const bool enable)
Expand Down

0 comments on commit df6b112

Please sign in to comment.