A highly configurable log filtering mod for Minecraft. Suppress noisy log messages, highlight important ones, and keep your console clean, all with hot-reloadable rules.
Wiki: https://tysontheember.dev/log-filter/intro/
logfilter.json and changes apply instantly, no restart neededLogFilter stores its config in logfilter.json in your Minecraft config directory. The file is created automatically on first launch with sensible defaults.
{
"configVersion": 1,
"enabled": true,
"rules": [
{
"name": "Suppress OpenAL spam",
"enabled": true,
"type": "MESSAGE_REGEX",
"pattern": "(?i)openal",
"action": "DENY",
"level": null
},
{
"name": "Block debug logs from server level",
"enabled": true,
"type": "LOGGER_NAME",
"pattern": "net.minecraft.server.level",
"action": "DENY",
"level": "DEBUG"
},
{
"name": "Always show errors",
"enabled": true,
"type": "LEVEL",
"pattern": "ERROR",
"action": "ALLOW",
"level": null
}
]
}
| Type | Description |
|---|---|
MESSAGE_REGEX |
Match the log message content against a regex pattern |
LOGGER_NAME |
Match by exact logger name or prefix (hierarchical) |
LOGGER_REGEX |
Match logger names using a regex pattern |
LEVEL |
Match by log level (DEBUG, INFO, WARN, ERROR) |
| Action | Description |
|---|---|
DENY |
Suppress the log message |
ALLOW |
Force the message through, regardless of other rules |
NEUTRAL |
No effect, pass through to the next rule |
Any rule can include a level field to restrict it to a specific log level. For example, a LOGGER_NAME rule with "level": "DEBUG" will only match debug messages from that logger.
LogFilter ships with several pre-configured rules (disabled by default) to get you started:
net.minecraft.server.levelEnable them by setting "enabled": true in the config file.