作者:rebot | 分类:模组
Minecraft 版本: 1.21.10
平台: fabric
标签: optimization utility
A Minecraft Fabric mod that reduces console spam by filtering out unnecessary messages and warnings.
The mod now uses an external configuration file located at config/NoConsoleSpam/spamfilters.json. This file is automatically created when the mod is first run.
You can customize the following settings:
Example configuration:
{
"spamPatterns": [
".*Lithium.*",
".*mismatch.*",
".*overloading.*",
".*moving.*wrongly.*",
".*Class Analysis Error.*"
],
"ignoredLoggers": [
"net.minecraft.class_5458",
"net.minecraft.class_5459",
"net.minecraft.class_5460"
],
"exceptionSettings": {
"captureExceptions": true,
"logFile": "logs/exceptions.log",
"maxLogSize": 10485760,
"maxBackupIndex": 3,
"organizeBySource": true,
"captureRuntimeExceptions": true,
"captureIOExceptions": true,
"captureFabricExceptions": true,
"captureMinecraftExceptions": true,
"captureReflectionExceptions": true,
"captureSecurityExceptions": true,
"captureNetworkExceptions": true,
"captureDataExceptions": true,
"captureErrors": true,
"captureConcurrentExceptions": true
}
}
Exceptions are now logged individually to separate files in the Console Errors directory. By default, the exceptions are organized into subdirectories based on their source (mod/plugin/class), making it much easier to track down issues from specific components.
Each exception log file contains:
This enhanced logging system provides much more context for debugging issues in Minecraft and Fabric mods.
The new exception logging system provides several options to control what gets logged:
organizeBySource: When enabled, exceptions are organized into subdirectories by their sourcecaptureRuntimeExceptions: Controls whether to log RuntimeExceptions (NullPointerException, etc.)captureIOExceptions: Controls whether to log IOExceptions (file errors)captureFabricExceptions: Controls whether to log Fabric-specific exceptionscaptureMinecraftExceptions: Controls whether to log Minecraft-specific exceptionscaptureReflectionExceptions: Controls whether to log reflection-related exceptionscaptureSecurityExceptions: Controls whether to log security-related exceptionscaptureNetworkExceptions: Controls whether to log network-related exceptionscaptureDataExceptions: Controls whether to log data-related exceptionscaptureErrors: Controls whether to log JVM errorscaptureConcurrentExceptions: Controls whether to log concurrent-related exceptionsFor more detailed information about each release, see the CHANGES.md file.
This project is licensed under the MIT License - see the LICENSE file for details.
请登录后举报
暂无评论,抢个沙发吧~