Skip to content

Releases: LMaxRouterCN/Log-Filter

Log Filter 1.1.1 for Minecraft 1.20.1

Choose a tag to compare

@LMaxRouterCN LMaxRouterCN released this 10 Oct 03:13

Fixed

  • Config comments: replaced the overly specific example (Terrain Diffusion (CUDA)) with a generic one (some (thing)); the note claiming invalid regexes crash config loading was outdated (safe-skip since 1.1.0) and now describes the actual behavior.

修复

  • 配置注释: 特殊性示例 (Terrain Diffusion (CUDA)) 换为通用示例 (some (thing)); 修正"非法正则导致配置加载崩溃"的过时描述(1.1.0 起实际行为为安全跳过并告警)。

Log Filter 1.1.0 for Minecraft 1.20.1

Choose a tag to compare

@LMaxRouterCN LMaxRouterCN released this 08 Oct 18:38

Log Filter 1.1.0 for Minecraft 1.20.1 (Forge 47+)

Added

  • Async output pipeline: all root-logger appenders are wrapped into a Log4j2 AsyncAppender (enabled by default) — console/file I/O runs on a background thread, the logging thread only pays the enqueue cost. Queue size, overflow policy and shutdown timeout are fully configurable.

Fixed

  • A single invalid regex (e.g. unbalanced parentheses) used to crash config loading; it is now skipped safely — a WARN goes to the log and an in-game chat warning appears when you enter a world. All other rules keep working.

Existing features (baseline for future changelogs)

Lightweight log filtering: intercepts and drops log lines by configurable rules before they reach the console or log file — less spam, less disk usage.

  • Regex filtering (partial match), exact match, logger-name & log-level filtering
  • Whitelist exclusion to protect critical logs
  • Dedup cache for repeated log events
  • Config hot-reload — edit & save, no restart needed
  • Bilingual config comments documenting every regex/TOML escaping pitfall

新增

  • 异步输出管线:root logger 全部 Appender 包装进 Log4j2 AsyncAppender(默认开启),打日志线程只付入队成本;队列容量、满载策略、关停超时全部可配置。

修复

  • 单条非法正则(如括号不闭合)曾导致配置加载崩溃;现在安全跳过——日志 WARN + 进入世界时聊天框黄字警告,其余规则照常生效。

既有功能(作为以后更新日志的基准)

轻量级日志过滤:在日志到达控制台和文件之前按规则拦截丢弃,减少刷屏、节省硬盘。

  • 正则过滤(包含匹配)、完全匹配、Logger 名称、日志等级多维过滤
  • 白名单排除,保护关键日志
  • 重复日志去重缓存
  • 配置热重载——改完存盘即生效,无需重启
  • 双语配置注释,正则/TOML 转义的坑全部写在配置内