1111
This commit is contained in:
36
Object/Log/Log.md
Normal file
36
Object/Log/Log.md
Normal file
@@ -0,0 +1,36 @@
|
||||
# Log 类函数文档
|
||||
|
||||
**类说明**:
|
||||
`Log`类为日志相关操作,在使用前请先在sqr_main中初始化。
|
||||
|
||||
```
|
||||
//初始化日志器
|
||||
Log({
|
||||
"normal": "/dp_s/log/normal.log",
|
||||
"error": "/dp_s/log/error.log"
|
||||
});
|
||||
```
|
||||
|
||||
|
||||
|
||||
---
|
||||
|
||||
### 函数签名
|
||||
**公有函数**:
|
||||
- `function Put(Type,Msg)`
|
||||
### 参数
|
||||
- `Type`:日志类型
|
||||
- `Msg`:日志字符串
|
||||
|
||||
|
||||
**这里给出一个例子**:
|
||||
|
||||
---
|
||||
|
||||
```
|
||||
Log.Put("normal", "测试日志");
|
||||
Log.Put("error", "测试错误日志");
|
||||
```
|
||||
---
|
||||
|
||||
---
|
||||
Reference in New Issue
Block a user