docs: update core and debug API docs
This commit is contained in:
27
docs/api/debug/consolelogsink/constructor.md
Normal file
27
docs/api/debug/consolelogsink/constructor.md
Normal file
@@ -0,0 +1,27 @@
|
||||
# ConsoleLogSink::ConsoleLogSink
|
||||
|
||||
```cpp
|
||||
ConsoleLogSink()
|
||||
```
|
||||
|
||||
默认构造函数。创建一个 `ConsoleLogSink` 实例。
|
||||
|
||||
**线程安全:** ✅
|
||||
|
||||
**复杂度:** O(1)
|
||||
|
||||
**返回值:** 无
|
||||
|
||||
**示例:**
|
||||
|
||||
```cpp
|
||||
using namespace XCEngine::Debug;
|
||||
|
||||
auto sink = std::make_unique<ConsoleLogSink>();
|
||||
Logger::Get().AddSink(std::move(sink));
|
||||
```
|
||||
|
||||
## 相关文档
|
||||
|
||||
- [ConsoleLogSink 总览](consolelogsink.md) - 返回类总览
|
||||
- [Debug 模块总览](../debug.md) - 返回模块总览
|
||||
Reference in New Issue
Block a user