本模组允许你为游戏日志设置过滤器。这意味着你可以阻止某些日志消息在控制台或客户端日志文件中显示。此模组旨在供整合包使用,当它们希望移除冗余信息或其他不重要的日志条目时。利用此模组可以减小日志文件的大小,并使得真正的错误和问题更容易被找到。在某些极端情况下,它还可以略微改善游戏的加载时间。
使用此模组,你可以创建两种类型的过滤器。
- 基础 - 如果过滤器的字符串包含在消息中,则该消息将被过滤。例如,如果过滤器是“hello”,那么消息“hello world”将被过滤。
- 正则表达式 - 如果消息匹配正则表达式过滤器,则该消息将被过滤。
FaQ
问:这是一个核心模组吗?
答:不是,这不是一个核心模组。虽然早期版本利用了 Forge 的核心模组系统以比其他模组更早加载,但对于针对 MC 1.12 及更高版本的模组来说,情况已不再如此。
问:移除信息难道不好或危险吗?
答:这在很大程度上取决于具体情况。此模组绝不应用于移除实际的错误信息。有几个模组,包括 Forge 本身,它们在记录调试信息方面已知会稍微过头,而这些情况正是此模组的预期用途。移除所有包含单词“null”的日志消息是不好的,但移除某个模组因为未知原因打印每个罗马数字的消息则是好的。
问:此模组默认会移除什么?
答:默认情况下,此模组不会移除任何内容。你必须通过更改 /config/sasit.cfg 文件来配置它。
本项目由 Nodecraft 赞助。使用代码 DARKHAX 可获得首月服务 30% 的折扣!
This mod allows you to set up filters for the game logger. This means that you can prevent certain logging messages from being shown in the console or client log file. This mod is intended for modpacks to use when they want to remove redundant information or other log entries that are not important. Utilizing this mod can make log files smaller, and also make actual errors and issues easier to find. In some extreme situations it can also slightly improve the load time of the game.
There are two types of filters you can make using this mod.
- Basic - If the string of the filter is contained within the message it will be filtered. For example if the filter is "hello" then the message "hello world" will be filtered.
- Regex - If the message matches the regex filter it will be filtered.
FaQ
Q: Is this a core mod?
A: No, this mod is not a core mod. While earlier versions did take advantage of Forge's Core Mod system to load earlier than other mods, this is no longer the case for versions targeting MC 1.12 and up.
Q: Isn't removing information bad or dangerous?
A: This largely depends on the circumstances. This mod should never be used to remove actual error information. There are several mods, including Forge itself which are known to go a bit overboard when it comes to logging debug information, and those situations are the intended use case for this mod. Removing all log messages with the word "null" in them is bad, but removing messages from a mod that just prints every roman numeral for some unknown reason is good.
Q: What does this mod remove by default?
A: By default this mod will not remove anything. You must configure it by changing the /config/sasit.cfg file.
This project is sponsored by Nodecraft. Use code DARKHAX for 30% off your first month of service!
下载 Stuff A Sock In It
下载 Stuff A Sock In It
下载 Stuff A Sock In It
下载 Stuff A Sock In It
下载 Stuff A Sock In It
下载 Stuff A Sock In It
下载 Stuff A Sock In It
下载 Stuff A Sock In It
下载 Stuff A Sock In It
下载 Stuff A Sock In It
- 合并来自 jriwanek/patch-1 的拉取请求 #10 - Tyler Hancock
- 更新 build.gradle - Jasmine Iwanek
衷心感谢在 Patreon 上支持我的朋友们
- NillerMedDild
- Pongo Sapiens
- Darkosto
关于这个资源的讨论、问题反馈与使用心得
还没有讨论,来发第一帖吧
你是这个资源的作者?登录后可认领此资源。
相似资源
模组
显示你正在注视的方块的信息。(适用于 Minecraft 1.16+ 的 Hwyla/Waila 分支)
模组
在游戏画面角落显示附近世界地形、玩家、生物和实体的地图。可创建路径点,帮助你找到标记过的位置。
模组
查看物品与配方
模组
使用 JavaScript 编辑配方、添加自定义物品、编写世界事件!
模组
AE2:一款流行的自动化与存储模组
模组
那是什么?一个 Waila/Hwyla 的分支。
评论 0
登录后参与评分
还没有评论,来抢沙发吧