feat: 集成engine日志系统到D3D12测试程序\n- FileLogSink每次写入后刷新\n- main.cpp使用Logger输出日志

This commit is contained in:
2026-03-15 14:25:36 +08:00
parent e7b32e55f7
commit c6d7ef4c39
2 changed files with 17 additions and 2 deletions

View File

@@ -30,6 +30,7 @@ void FileLogSink::Log(const LogEntry& entry) {
entry.message.CStr());
m_writer.Write(buffer, std::strlen(buffer));
m_writer.Flush();
}
void FileLogSink::Flush() {