Less Logging
Reduces log spam by filtering out death messages for named entities (mobs with name tags).
介绍
No Useless Logging
Why I Made This Mod
If you’ve ever run a Minecraft server with named mobs or played with mods that spawn named entities, you’ve probably noticed your console and log files getting flooded with death messages like:
What It Does
No Useless Logging is a lightweight utility mod that filters out death messages for any entity that has a custom name tag. This includes:
✅ Vanilla mobs – Sheep, cows, villagers, horses, wolves, cats, and all other tameable/nameable entities
✅ Modded entities – Any mod that extends Minecraft’s base LivingEntity class
✅ Villager death messages – Including the special villager-specific death log format
✅ All death causes – Whether the entity was slain, drowned, burned, fell, or died any other way
The mod works by installing a Log4j filter at the root logger level, which means it catches and blocks these messages before they ever reach your console or log file.
Important: This mod only filters log messages. It does not affect gameplay, death events, or any other game mechanics. Your entities will still die normally – you just won’t see the spam in your logs.
Performance
No Useless Logging is designed with performance in mind:
- Minimal overhead – The filter only checks messages that contain death-related content
- Efficient string matching – Uses simple prefix checking (
startsWith) rather than expensive regex operations - No tick handlers – The mod doesn’t hook into the game loop or run any recurring tasks
- No event listeners – Works purely at the logging level, completely separate from game events
- Tiny memory footprint – The entire mod is less than 6KB
The filter operates in O(1) time complexity for the most common case (checking if a message starts with “Named entity”), making it virtually unnoticeable even on high-traffic servers.
Reducing Log File Size
On servers with many named entities, death messages can significantly contribute to log file bloat. Here’s what you can expect:
| Scenario | Without Mod | With Mod |
|---|---|---|
| Trading hall with 50 villagers | Dozens of death messages during raids | Clean logs |
| Named mob farm | Constant spam from entity deaths | Silent operation |
| Adventure server with named NPCs | Log files grow rapidly | Minimal log growth |
By filtering these messages, you’ll see:
- Smaller log files – Less disk space usage over time
- Cleaner console output – Easier to monitor server activity
- Faster log parsing – When analyzing logs for errors or issues
Compatibility
Minecraft Version: 1.21.1
Mod Loader: NeoForge 21.1.215+
Side: Both (Client & Server)
Works With:
- ✅ All vanilla entities
- ✅ Modded entities that extend
LivingEntity - ✅ Single-player worlds
- ✅ Dedicated servers
- ✅ LAN worlds
Installation:
- Server-only: Install on the server to filter server logs
- Client-only: Install on the client to filter client logs
- Both: Install on both for complete coverage
Mod Compatibility:
This mod operates at the logging level and does not modify any game classes or use mixins. It should be compatible with virtually every other mod. If you encounter any compatibility issues, please report them!
License
This mod is released under the MIT License. You are free to include it in modpacks, modify it, or use it however you like.
Made by Navrelis
常见问题
Less Logging 支持哪些 Minecraft 版本?
Less Logging 支持 Minecraft Java 版 1.21.1,可用的加载器:NeoForge。下载时注意选择和你游戏版本一致的文件。
Less Logging 怎么安装?
先用 PCL2 或 HMCL 启动器安装对应版本的 NeoForge,再把下载的 .jar 文件放进游戏目录的 mods 文件夹,重新启动游戏即可。开启了版本隔离的,mods 文件夹在 versions/版本名 下面。
Navrelis 的其他作品
查看全部 →Effortless Building: Sophisticated (Enhanced Fork)
提升建造体验的模组,提供镜像、阵列和形状模式,扩大建造范围,支持按轴设置放置限制、通过背包升级建造功能,并显示精简的 HUD 数量统计;在生存模式建造时,还会清晰提示缺少的物品。
BetterEnd: Remastered
BetterEnd Remastered 彻底重做了末地维度!探索 24+ 个令人惊叹的生物群系、奇异生物、自定义地形和强大的新装备。专为 Minecraft 1.21.1 原生打造,带来独家性能优化和关键漏洞修复!
WorldWeaver: Remastered
WorldWeaver Remastered 是一款强大的现代化 API 和世界生成前置库!作为 BCLib 的继任者,它为 BetterEnd 和 BetterNether 提供了必不可少的框架,修复了地形核心问题,并解锁了由数据驱动的高级维度!
BCLib: Remastered
BCLib Remastered 是适用于 Minecraft Fabric 1.21.1 的强大前置库与 API,为 BetterEnd 和 BetterNether 提供必需的通用工具、渲染工具、自定义配置和程序化模型。专为现代整合包优化!
评论
登录后评论和评分