ms-types 0.0.75 → 0.0.78
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "ms-types",
|
|
3
|
-
"version": "0.0.
|
|
3
|
+
"version": "0.0.78",
|
|
4
4
|
"type": "module",
|
|
5
5
|
"license": "MIT",
|
|
6
6
|
"publishConfig": {
|
|
@@ -16,6 +16,6 @@
|
|
|
16
16
|
},
|
|
17
17
|
"devDependencies": {
|
|
18
18
|
"vitepress": "^1.6.4",
|
|
19
|
-
"vitepress-theme-teek": "^1.5.
|
|
19
|
+
"vitepress-theme-teek": "^1.5.1"
|
|
20
20
|
}
|
|
21
21
|
}
|
package/types/logger.d.ts
CHANGED
|
@@ -18,6 +18,20 @@ declare namespace logger {
|
|
|
18
18
|
* logger.setLogToFile(true);
|
|
19
19
|
*/
|
|
20
20
|
function setLogToFile(enabled: boolean): void;
|
|
21
|
+
/**
|
|
22
|
+
* 设置最大日志文件数量 默认10个文件
|
|
23
|
+
* @param count 最大日志文件数量
|
|
24
|
+
* @example
|
|
25
|
+
* logger.setMaxLogFileCount(10);
|
|
26
|
+
*/
|
|
27
|
+
function setMaxLogFileCount(count: number): void;
|
|
28
|
+
/**
|
|
29
|
+
* 设置最大日志文件大小 默认10MB
|
|
30
|
+
* @param size 最大日志文件大小(单位:MB)
|
|
31
|
+
* @example
|
|
32
|
+
* logger.setMaxLogFileSize(10);
|
|
33
|
+
*/
|
|
34
|
+
function setMaxLogFileSize(size: number): void;
|
|
21
35
|
/**
|
|
22
36
|
* 重置日志文件 会创建一个新的日志文件 避免一个日志文件太大
|
|
23
37
|
* @example
|
|
@@ -19,6 +19,20 @@ declare namespace $日志 {
|
|
|
19
19
|
* $日志.设置日志保存到文件(true);
|
|
20
20
|
*/
|
|
21
21
|
function 设置日志保存到文件(是否开启: 布尔值): 无返回值;
|
|
22
|
+
/**
|
|
23
|
+
* 设置最大日志文件数量 默认10个文件
|
|
24
|
+
* @param count 最大日志文件数量
|
|
25
|
+
* @example
|
|
26
|
+
* $日志.设置最大日志文件数量(10);
|
|
27
|
+
*/
|
|
28
|
+
function 设置最大日志文件数量(数量: 数字): 无返回值;
|
|
29
|
+
/**
|
|
30
|
+
* 设置最大日志文件大小 默认10MB
|
|
31
|
+
* @param size 最大日志文件大小(单位:MB)
|
|
32
|
+
* @example
|
|
33
|
+
* $日志.设置最大日志文件大小(10);
|
|
34
|
+
*/
|
|
35
|
+
function 设置最大日志文件大小(大小: 数字): 无返回值;
|
|
22
36
|
/**
|
|
23
37
|
* 重置日志文件 会创建一个新的日志文件 避免一个日志文件太大
|
|
24
38
|
* @example
|