mirror of
https://github.com/Wx-2025/ST-Amily2-Chat-Optimisation.git
synced 2026-06-10 13:35:50 +00:00
增强日志记录功能,添加安全控制台以避免劫持,并在日志处理时输出调试信息
This commit is contained in:
@@ -144,6 +144,9 @@ class Logger {
|
||||
* 统一处理过滤、格式化和输出,支持默认归属 Global
|
||||
*/
|
||||
process(plugin, origin, type, message, inFile = false) {
|
||||
// [DEBUG] 强制输出以确认方法被调用 (使用 error 级别防止被过滤)
|
||||
console.error('[Logger DEBUG] Process called:', { plugin, origin, type, message });
|
||||
|
||||
// 1. 默认归属处理
|
||||
const safePlugin = plugin || 'Global';
|
||||
const safeOrigin = origin || 'System';
|
||||
|
||||
Reference in New Issue
Block a user