Better Log4j Config
一个用于 Quilt 和 Fabric 的简单模组,可自动重新配置 Log4j,以改善日志消息的格式。
开发状态
该模组已停止开发。它(几乎)肯定会继续适用于未来版本的 Minecraft,但受支持的版本列表可能会过时。
截图
修改前

修改后

功能说明
从上述截图中可以看出,此模组带来的主要区别是在每条日志消息中添加了对应模组的名称。
这一小改动使日志的可读性显著提高,因为如果没有它,就无法可靠地区分来自不同模组的日志消息。
截图还突出了某些模组尝试通过手动在日志消息内容中包含其名称来单独解决此问题。
此模组通过将日志系统本身配置为始终在日志消息中包含模组名称来解决此问题。
日志消息的格式还可以通过 配置文件 进一步自定义,默认情况下该文件位于模组配置目录中的 better_log4j_config.xml。
版本支持
Better Log4j Config 兼容 Quilt 和 Fabric 模组加载器所支持的所有 Minecraft 版本——即 1.14 及以上版本。Forge 模组加载器已经内置了重新配置 Log4j 的功能,因此没有计划将其移植到 Forge。
报告问题
如果由于任何原因模组无法正常工作,请 提交 issue 以便修复。请务必包含你使用的 Minecraft 版本和模组加载器版本,以及你安装的任何其他模组,并附上日志文件的副本。(提示:你可以将 -Dlog4j2.debug=true 作为命令行参数添加到 Minecraft 中,以生成更详细的日志。)
许可证
Better Log4j Config 采用 Apache 2.0 许可证。
Better Log4j Config
A simple mod for Quilt and Fabric to automatically reconfigure Log4j to improve the formatting of log messages.
Development Status
This mod is no longer being developed. It will (almost) definitely continue working for future versions of Minecraft, but the supported versions list may become outdated.
Screenshots
Before

After

What does it do?
As can be seen from the above screenshots, the main difference this mod makes is the addition of the name of the mod responsible for each log message.
This small change makes logs significantly more readable, as without it there is no reliable way to distinguish between log messages from different mods.
The screenshots also highlight how some mods attempt to individually remedy this issue by manually including their name in the content of the log message.
This mod offers a solution to this problem by configuring the logging system itself to always include the mod name in the log messages.
The format of the log messages can also be further customised with a config file, which by default is better_log4j_config.xml in the mod config directory.
Version Support
Better Log4j Config is compatible with every version of Minecraft that is supported by the Quilt and Fabric mod loaders - so 1.14 onwards. The Forge mod loader already has built-in functionality to reconfigure Log4j, so there are no plans to port the mod to it.
Reporting Issues
If for any reason the mod isn't working, please open an issue so it can be fixed. Remember to include the versions of both Minecraft and the mod loader you're using, as well as any other mods you have installed, and also a copy of the log file. (Hint: You can add -Dlog4j2.debug=true as a command-line argument to Minecraft to produce substantially more verbose logs.)
License
Better Log4j Config is licensed under the Apache 2.0 license.
下载 Better Log4j Config
需要联机服务器吗?
稳定流畅、一键部署,几分钟即可和朋友联机开服
最低仅需 8 元/月 即可畅快联机
下载 Better Log4j Config
需要联机服务器吗?
稳定流畅、一键部署,几分钟即可和朋友联机开服
最低仅需 8 元/月 即可畅快联机
下载 Better Log4j Config
下载 Better Log4j Config
需要联机服务器吗?
稳定流畅、一键部署,几分钟即可和朋友联机开服
最低仅需 8 元/月 即可畅快联机
下载 Better Log4j Config
需要联机服务器吗?
稳定流畅、一键部署,几分钟即可和朋友联机开服
最低仅需 8 元/月 即可畅快联机
下载 Better Log4j Config
默认禁用 debug.log,因为它过于冗长
- 已经在使用此模组的人需要删除或重命名配置文件以使更改生效
关于这个资源的讨论、问题反馈与使用心得
还没有讨论,来发第一帖吧
你是这个资源的作者?登录后可认领此资源。
相似资源
模组
显示你正在注视的方块的信息。(适用于 Minecraft 1.16+ 的 Hwyla/Waila 分支)
模组
在游戏画面角落显示附近世界地形、玩家、生物和实体的地图。可创建路径点,帮助你找到标记过的位置。
模组
查看物品与配方
模组
使用 JavaScript 编辑配方、添加自定义物品、编写世界事件!
模组
AE2:一款流行的自动化与存储模组
模组
那是什么?一个 Waila/Hwyla 的分支。
评论 0
登录后参与评分
还没有评论,来抢沙发吧