- 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
31 lines
638 B
Markdown
31 lines
638 B
Markdown
# Logger::Info
|
||
|
||
```cpp
|
||
void Info(LogCategory category, const Containers::String& message)
|
||
```
|
||
|
||
记录一条 Info(2 级)日志。Info 级别用于一般性信息,如启动提示、配置加载等用户可见的正常运行消息。
|
||
|
||
**参数:**
|
||
- `category` - 日志分类
|
||
- `message` - 日志消息内容
|
||
|
||
**返回:** 无
|
||
|
||
**复杂度:** O(n),n 为注册的 Sink 数量
|
||
|
||
**示例:**
|
||
|
||
```cpp
|
||
#include <XCEngine/Debug/Logger.h>
|
||
|
||
XCEngine::Debug::Logger::Get().Info(
|
||
XCEngine::Debug::LogCategory::General,
|
||
"Application initialized successfully"
|
||
);
|
||
```
|
||
|
||
## 相关文档
|
||
|
||
- [Logger 总览](logger.md) - 返回类总览
|