Files
XCEngine/docs/api/debug/logger/debug.md

681 B

Logger::Debug

void Debug(LogCategory category, const Containers::String& message);

记录 Debug 级别日志。用于记录调试目的的信息,比 Verbose 级别稍简略。

参数:

  • category - 日志分类
  • message - 日志消息内容

返回:

线程安全:

示例:

#include "XCEngine/Debug/Logger.h"

using namespace XCEngine::Debug;

Logger& logger = Logger::Get();
logger.Debug(LogCategory::Rendering, "Frame rendered in 16ms");
logger.Debug(LogCategory::Physics, "Collision detected");

相关文档