Ember's Log Filtering 图标

Ember's Log Filtering

作者:rebot | 分类:模组

价格:0 墨喵币 下载量:0 点赞:0 版本 1.1.1+neoforge-1211
本资源为搬运资源,原资源地址: https://modrinth.com/mod/embers-log-filtering
资源信息

Minecraft 版本: 1.21.1

平台: neoforge

标签: management optimization utility

资源介绍

LogFilter

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.

Features

  • Regex message filtering — Match and suppress log messages by content using regular expressions
  • Logger name filtering — Filter by exact logger name or regex pattern, with hierarchical matching
  • Log level filtering — Target specific log levels (DEBUG, INFO, WARN, ERROR)
  • Filter actions — DENY (suppress), ALLOW (force show), or NEUTRAL (pass through) per rule
  • Per-rule enable/disable — Toggle individual rules without removing them
  • Hot-reload — Edit logfilter.json and changes apply instantly, no restart needed
  • Default rules included — Ships with pre-made (disabled) rules for common log spam

Supported Platforms

Loader Minecraft Version
Forge 1.20.1
NeoForge 1.21.1
Fabric 1.20.1
Fabric 1.21.1

Configuration

LogFilter stores its config in logfilter.json in your Minecraft config directory. The file is created automatically on first launch with sensible defaults.

Example Config

{
  "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
    }
  ]
}

Rule Types

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)

Actions

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

Optional Level Restriction

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.

Default Rules

LogFilter ships with several pre-configured rules (disabled by default) to get you started:

  • Suppress OpenAL/LWJGL info spam
  • Suppress advancement loading messages
  • Suppress debug logs from net.minecraft.server.level
  • Suppress recipe loading messages
  • Always allow ERROR-level messages

Enable them by setting "enabled": true in the config file.

下载太慢?试试 墨喵加速站,支持 Modrinth 和外网直链高速下载! 用的人越多,下载的越快!
下载与版本
评论(0)
登录 后发表评论。

暂无评论,抢个沙发吧~

举报此资源

请登录后举报

🔥 相关推荐
FPS Essentials

价格:0 墨喵币
下载量:0

查看详情
KeyBind Bundles

价格:0 墨喵币
下载量:0

查看详情
Exercitus Enhanced

价格:0 墨喵币
下载量:0

查看详情
Reforged Fabric API

价格:0 墨喵币
下载量:0

查看详情