Files
XCEngine/docs/api/XCEngine/Debug/Logger/Verbose.md

46 lines
733 B
Markdown
Raw Normal View History

2026-03-26 16:45:24 +08:00
# Logger::Verbose
2026-03-26 17:21:44 +08:00
`Verbose` 级别记录一条日志。
2026-03-26 16:45:24 +08:00
```cpp
void Verbose(LogCategory category, const Containers::String& message);
```
2026-03-26 17:21:44 +08:00
## 行为说明
2026-03-26 16:45:24 +08:00
2026-03-26 17:21:44 +08:00
这是 `Logger::Log` 的便捷封装,等价于:
2026-03-26 16:45:24 +08:00
2026-03-26 17:21:44 +08:00
```cpp
Log(LogLevel::Verbose, category, message);
```
2026-03-26 16:45:24 +08:00
2026-03-26 17:21:44 +08:00
适合输出高频、细粒度的开发期调试信息。默认不带源码位置信息。
2026-03-26 16:45:24 +08:00
2026-03-26 17:21:44 +08:00
## 参数
- `category` - 日志分类。
- `message` - 日志文本。
## 返回值
2026-03-26 16:45:24 +08:00
2026-03-26 17:21:44 +08:00
- 无。
## 线程语义
- 与 [Log](Log.md) 相同。
## 示例
```cpp
XCEngine::Debug::Logger::Get().Verbose(
XCEngine::Debug::LogCategory::Threading,
"Worker thread woke up"
);
2026-03-26 16:45:24 +08:00
```
## 相关文档
2026-03-26 17:21:44 +08:00
- [返回类型总览](Logger.md)
- [Log](Log.md)
- [Debug](Debug.md)