ConsoleFilter
受够了刷屏般的错误信息、重复的警告或嘈杂的模组日志堵塞你的服务器终端? ConsoleFilter 实时拦截并隐藏不需要的控制台消息,保持日志整洁易读。
主要功能
- 关键词过滤: 屏蔽任何匹配你自定义关键词或短语的控制台消息。
- 完整的游戏内控制 (v1.7.0 新增): 使用
/consolefilter命令直接在游戏内管理过滤器——无需打开服务器文件或重启。 - 交互式聊天界面 (v1.7.0 新增): 运行
/consolefilter list查看活动过滤器,并直接在聊天中点击 [❌ Remove] 按钮删除它们。 - 审计日志 / 日志重定向 (v1.7.0 新增): 在清理控制台的同时不错过任何错误。被屏蔽的消息会自动保存至
logs/filtered.log并附带时间戳。默认启用。 - 零额外开销: 在控制台渲染之前于 Log4j 根级别过滤消息。
- 即时热重载: 从游戏内进行的更改立即生效。若手动修改了 filter_config.txt 以立即生效,请运行命令 /consolefilter reload。
游戏内命令 (适用于 1.7.0+ 版本 | OP 等级 2)
/consolefilter list— 查看带有可点击[❌ Remove]按钮的活动过滤器。/consolefilter add <keyword>— 添加新的过滤器关键词或短语。/consolefilter remove <keyword>— 移除过滤器(支持 Tab 补全)。/consolefilter test <message>— 测试示例消息是否会被拦截。/consolefilter audit <on|off>— 切换是否将屏蔽的日志保存至logs/filtered.log。/consolefilter reload— 直接从磁盘重新加载配置。/consolefilter clear— 清除所有活动过滤规则。
配置
配置文件位置:config/consolefilter/filter_config.txt
# 将过滤后的日志保存到 logs/filtered.log (true/false) - (v1.7.0+)
SaveFilteredLogs = true
# 添加你要过滤的关键词,用逗号分隔
Filters = [fell from a high place, drowned]
☕ 用咖啡为我的代码加油!
喜欢这个模组吗?通过 这里 投喂我一杯咖啡,让我保持清醒和半正常运作状态 ?。感谢,大佬!
ConsoleFilter
Tired of spammy errors, repeating warnings, or noisy mod logs clogging up your server terminal? ConsoleFilter intercepts and hides unwanted console messages in real time, keeping your logs clean and readable.
Key Features
- Keyword Filtering: Suppresses any console message matching your custom keywords or phrases.
- Full In-Game Control (New in v1.7.0): Manage your filters directly in-game using
/consolefilter— no need to open server files or restart. - Interactive Chat UI (New in v1.7.0): Run
/consolefilter listto view active filters and click the [❌ Remove] button directly in chat to delete them. - Audit Log / Log Redirection (New in v1.7.0): Clean your console without losing track of errors. Suppressed messages can be automatically saved to
logs/filtered.logwith timestamps. Enabled by default. - Zero Overhead: Filters messages at the Log4j root level before console rendering.
- Instant Hot-Reload: Any changes made from in-game take effect immediately. For changes made in the filter_config.txt manually to take effect effect immediately, run the command /consolefilter reload.
In-Game Commands (Available from version 1.7.0+ | OP Level 2)
/consolefilter list— View active filters with clickable[❌ Remove]buttons./consolefilter add <keyword>— Add a new filter keyword or phrase./consolefilter remove <keyword>— Remove a filter (supports tab completion)./consolefilter test <message>— Test whether a sample message would be blocked./consolefilter audit <on|off>— Toggle saving suppressed logs tologs/filtered.log./consolefilter reload— Reload configuration directly from disk./consolefilter clear— Clear all active filter rules.
Configuration
Config file location: config/consolefilter/filter_config.txt
# Save filtered logs to logs/filtered.log (true/false) - (v1.7.0+)
SaveFilteredLogs = true
# Add keywords you want to filter separated by commas
Filters = [fell from a high place, drowned]
☕ Fuel My Code with Coffee!
Liked the mod? Keep me caffeinated and semi-functional ? by dropping a coffee here. Thanks, you legend!
下载 ConsoleFilter
需要联机服务器吗?
稳定流畅、一键部署,几分钟即可和朋友联机开服
最低仅需 8 元/月 即可畅快联机
下载 ConsoleFilter
需要联机服务器吗?
稳定流畅、一键部署,几分钟即可和朋友联机开服
最低仅需 8 元/月 即可畅快联机
下载 ConsoleFilter
需要联机服务器吗?
稳定流畅、一键部署,几分钟即可和朋友联机开服
最低仅需 8 元/月 即可畅快联机
下载 ConsoleFilter
需要联机服务器吗?
稳定流畅、一键部署,几分钟即可和朋友联机开服
最低仅需 8 元/月 即可畅快联机
下载 ConsoleFilter
需要联机服务器吗?
稳定流畅、一键部署,几分钟即可和朋友联机开服
最低仅需 8 元/月 即可畅快联机
下载 ConsoleFilter
需要联机服务器吗?
稳定流畅、一键部署,几分钟即可和朋友联机开服
最低仅需 8 元/月 即可畅快联机
下载 ConsoleFilter
需要联机服务器吗?
稳定流畅、一键部署,几分钟即可和朋友联机开服
最低仅需 8 元/月 即可畅快联机
下载 ConsoleFilter
需要联机服务器吗?
稳定流畅、一键部署,几分钟即可和朋友联机开服
最低仅需 8 元/月 即可畅快联机
下载 ConsoleFilter
需要联机服务器吗?
稳定流畅、一键部署,几分钟即可和朋友联机开服
最低仅需 8 元/月 即可畅快联机
v1.7.0 更新日志
- 游戏内命令:新增
/consolefilter(支持 add、remove、list、test、clear、audit、reload)。 - 可点击的聊天界面:在
/consolefilter list中添加了交互式的 [❌ Remove] 按钮。 - 审计日志记录:新增了将过滤后的日志重定向至
logs/filtered.log的选项。
关于这个资源的讨论、问题反馈与使用心得
还没有讨论,来发第一帖吧
你是这个资源的作者?登录后可认领此资源。
相似资源
模组
显示你正在注视的方块的信息。(适用于 Minecraft 1.16+ 的 Hwyla/Waila 分支)
模组
查看物品与配方
模组
在游戏画面角落显示附近世界地形、玩家、生物和实体的地图。可创建路径点,帮助你找到标记过的位置。
模组
使用 JavaScript 编辑配方、添加自定义物品、编写世界事件!
模组
添加区块认领和玩家组队功能,并与 Xaero's Minimap 和 World Map 集成
模组
添加全屏世界地图,显示你在世界中已探索的区域。与 Xaero's Minimap 搭配使用效果极佳。
评论 0
登录后参与评分
还没有评论,来抢沙发吧