v2.0.1 更新:

1、常规BUG修复,参数名称修改
This commit is contained in:
2025-07-19 16:43:22 +08:00
parent 4ce49e1205
commit 7d8cda234e
5 changed files with 13 additions and 13 deletions

View File

@@ -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;