跳到正文

Sysout Filter

作者:_haise0_

JVM-level console spam filter with simple config file

收藏

介绍

中文介绍正在准备中,下面暂时显示原文。

Sysout Filter

A NeoForge/Forge server mod that filters spam from your console that other filtering mods often can’t catch.

Why is this different than other solutions?

Some mods print directly to System.out or System.err instead of going through the standard Log4j logging system. This means that Log4j filters don’t always work, and other implementations of console filtering mods like ConsoleFilter can’t catch everything, which was my inspiration for this mod.

Sysout Filter intercepts at the JVM level by replacing System.out and System.err on startup. Every single line of console output passes through it, regardless of how it was printed. There is no lower level to intercept at.

Setup and usage

On first launch, the mod creates config/sysoutfilter.txt.
Filters are line-by line with no formatting required.

I.e:

# Comment

Tick

Drowned

Suffocated in a wall

常见问题

Sysout Filter 支持哪些 Minecraft 版本?

Sysout Filter 支持 Minecraft Java 版 1.20.1–1.21.1,共 2 个版本,可用的加载器:Forge / NeoForge。下载时注意选择和你游戏版本一致的文件。

Sysout Filter 怎么安装?

先用 PCL2 或 HMCL 启动器安装对应版本的 Forge / NeoForge,再把下载的 .jar 文件放进游戏目录的 mods 文件夹,重新启动游戏即可。开启了版本隔离的,mods 文件夹在 versions/版本名 下面。

评论

登录后评论和评分

_haise0_ 的其他作品

查看全部 →