Skip to content

Commit 0d13b43

Browse files
committed
feat: log
1 parent f32ef2c commit 0d13b43

File tree

1 file changed

+14
-0
lines changed

1 file changed

+14
-0
lines changed

docs/trem/miscellaneous/logger.mdx

+14
Original file line numberDiff line numberDiff line change
@@ -3,3 +3,17 @@ sidebar_position: 4
33
---
44

55
# 日誌紀錄
6+
7+
主視窗 logger 實例,有 `debug``info``warn``error` 四種等級。
8+
9+
:::tip
10+
支援 `logger.info("info", 123, false);` 用法。
11+
:::
12+
13+
```js
14+
const { TREM, Logger, logger, MixinManager } = this.#ctx;
15+
logger.debug("debug");
16+
logger.info("info");
17+
logger.warn("warn");
18+
logger.error("error");
19+
```

0 commit comments

Comments
 (0)