v2.0.1 更新:
1、常规BUG修复,参数名称修改
This commit is contained in:
@@ -26,7 +26,7 @@ class LogMonitorAdaptive {
|
||||
timeFormat: 'HH:mm:ss.SSS', // 时间戳格式,可自定义
|
||||
|
||||
/* --- 日志级别 & 过滤 --- */
|
||||
levels: ['debug', 'info', 'warn', 'error', 'success', 'system'], // 可用日志级别
|
||||
levels: ['DEBUG', 'INFO', 'WARN', 'ERROR', 'SUCCESS', 'SYSTEM'], // 可用日志级别
|
||||
// 过滤功能基于 levels;如只想显示 info/warn,可在这里删减
|
||||
|
||||
/* --- 功能开关 --- */
|
||||
@@ -51,7 +51,7 @@ class LogMonitorAdaptive {
|
||||
|
||||
/* 强制确保 levels 是数组,防止 forEach 报错 */
|
||||
if (!Array.isArray(this.cfg.levels)) {
|
||||
this.cfg.levels = ['info', 'warn', 'error'];
|
||||
this.cfg.levels = ['INFO', 'WARN', 'ERROR'];
|
||||
}
|
||||
|
||||
this.isPaused = false;
|
||||
|
||||
Reference in New Issue
Block a user