feat: spdlog 显式初始化——控制台彩色 + 文件双 sink

Application 构造时 Logger::Initialize(APP logger:stderr 彩色 +
HelloVulkan.log 双写,warn 以上立即 flush),析构 Shutdown。
This commit is contained in:
2026-09-24 13:23:52 +08:00
parent a1c6ad20be
commit 705250df76
3 changed files with 58 additions and 0 deletions
+4
View File
@@ -22,6 +22,8 @@ namespace Engine {
Application::Application(const std::string& title, u32 width, u32 height)
{
Logger::Initialize();
m_Window = CreateScope<Window>(title, width, height);
// 事件通道:GLFW 回调 → 本类 DispatchEvent → 派生类钩子
@@ -51,6 +53,8 @@ namespace Engine {
if (m_Renderer) {
m_Renderer->GetDevice().GetDevice().waitIdle();
}
Logger::Shutdown();
}
void Application::EnableImGui()