- 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
677 B
Markdown
31 lines
677 B
Markdown
# Logger::Fatal
|
||
|
||
```cpp
|
||
void Fatal(LogCategory category, const Containers::String& message)
|
||
```
|
||
|
||
记录一条 Fatal(5 级)日志。Fatal 级别用于表示不可恢复的严重错误,通常意味着程序即将终止。此方法可能在记录日志后触发程序中断。
|
||
|
||
**参数:**
|
||
- `category` - 日志分类
|
||
- `message` - 日志消息内容
|
||
|
||
**返回:** 无
|
||
|
||
**复杂度:** O(n),n 为注册的 Sink 数量
|
||
|
||
**示例:**
|
||
|
||
```cpp
|
||
#include <XCEngine/Debug/Logger.h>
|
||
|
||
XCEngine::Debug::Logger::Get().Fatal(
|
||
XCEngine::Debug::LogCategory::General,
|
||
"Out of memory - cannot continue"
|
||
);
|
||
```
|
||
|
||
## 相关文档
|
||
|
||
- [Logger 总览](logger.md) - 返回类总览
|