Files
XCSDD/docs/api/debug/logger/debug.md
ssdfasd 58a83f445a fix: improve doc link navigation and tree display
- Fix link resolution with proper relative/absolute path handling
- Improve link styling with underline decoration
- Hide leaf nodes from tree, only show directories
- Fix log file path for packaged app
2026-03-19 12:44:08 +08:00

31 lines
607 B
Markdown
Raw Blame History

This file contains ambiguous Unicode characters
This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.
# Logger::Debug
```cpp
void Debug(LogCategory category, const Containers::String& message)
```
记录一条 Debug1 级日志。Debug 级别用于一般调试信息,比 Verbose 简洁但比 Info 详细。
**参数:**
- `category` - 日志分类
- `message` - 日志消息内容
**返回:**
**复杂度:** O(n)n 为注册的 Sink 数量
**示例:**
```cpp
#include <XCEngine/Debug/Logger.h>
XCEngine::Debug::Logger::Get().Debug(
XCEngine::Debug::LogCategory::Rendering,
"Draw call batch size: 512"
);
```
## 相关文档
- [Logger 总览](logger.md) - 返回类总览