feat: spdlog 显式初始化——控制台彩色 + 文件双 sink
Application 构造时 Logger::Initialize(APP logger:stderr 彩色 + HelloVulkan.log 双写,warn 以上立即 flush),析构 Shutdown。
This commit is contained in:
@@ -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()
|
||||
|
||||
Reference in New Issue
Block a user