Log Sifter - 过滤掉令人烦恼但无害的日志
Ⅰ. 简介
Log Sifter 是一款专为 Minecraft NeoForge 服务器和客户端设计的模组(内部代号:Arona-02),用于过滤并屏蔽游戏中产生的冗余日志信息。该模组基于 NeoForge 平台,用户可以通过自定义配置规则来减少日志文件中的噪音,使重要信息更加突出和醒目。
II. 主要功能
- 日志过滤:通过配置文件定义规则,以屏蔽特定的日志输出
- 正则表达式支持:支持使用正则表达式精确匹配日志内容
- 动态配置:支持在运行时加载和应用过滤规则
- 轻量级设计:不修改核心游戏功能,仅专注于日志管理
III. 安装指南
3-1:前置条件
- 已安装支持的 Minecraft 版本 (1.21.1)
- 已安装对应版本的 NeoForge (21.1.200 或更高版本)
3-2:安装步骤
- 从项目的 Release 页面下载最新版本
- 将模组文件放入客户端(或服务器)的
mods 文件夹中
- 启动游戏,模组将在
config 目录下自动生成默认配置文件
- 根据需要编辑配置文件
- 重启服务器以应用更改
- 享受 Log Sifter 带来的干净控制台和日志
IV. 从源代码构建
如果您希望从源代码构建此插件,需要 Java Development Kit (JDK) 21 或更高版本。
4-1:构建步骤
- 克隆仓库:
git clone https://github.com/MC-Nirvana/log-sifter.git
- 进入仓库目录:
cd log-sifter
- 执行构建命令:
./gradlew build
- 在
build/libs/ 目录中找到生成的 JAR 文件
4-2:开发环境设置
- 建议使用 IntelliJ IDEA 进行开发
- 导入项目后,确保 Gradle 依赖项正确下载
V. 贡献与支持
欢迎通过 GitHub Issues 提交错误报告和功能建议
5-1:贡献方式
- 提交代码改进和新功能实现
- 完善文档和翻译
- 报告漏洞和安全问题
- 参与讨论并提供使用反馈
5-2:提交 Pull Requests 的最佳实践
- Fork 项目并创建功能分支
- 编写清晰的提交信息
- 确保代码符合项目的编码标准
- 添加相应的测试用例
- 保持 Pull Request 专注于单个功能或修复
5-3:开发者资源
- 本项目遵循标准的 Git 工作流
- 请在提交 Pull Request 前确保代码通过所有测试
- 保持一致的代码风格,参考现有代码结构
VI. 许可证
本项目采用 MIT 许可证 开源许可
VII. 支持与反馈
如果您喜欢这个项目,请考虑:
- 给项目点个 Star ⭐
- 在社交媒体上分享本项目
- 参与项目讨论并提供宝贵的反馈
VIII. 赞助支持
如果您希望支持本项目的持续开发和维护,可以通过以下方式赞助:
- ifdian - 通过爱发电赞助(适合中国大陆用户)
- PayPal - 通过 PayPal 赞助(适合海外用户)
您的赞助将用于:
IX. 官方社区
Log Sifter - Filter Out Annoying but Harmless Logs
Ⅰ. Introduction
Log Sifter is a mod designed specifically for Minecraft NeoForge servers and clients (internal codename: Arona-02) , which filters and blocks redundant log information generated in the game. This module is based on the NeoForge platform and can help users reduce noise in log files by customizing configuration rules, making important information more prominent and visible.
II. Main Features
- Log Filtering: Define rules through configuration files to block specific log outputs
- Regular Expression Support: Support precise log content matching using regular expressions
- Dynamic Configuration: Support loading and applying filtering rules at runtime
- Lightweight Design: Does not modify core game functions, focusing only on log management
III. Installation Guide
3-1:Prerequisites
- Installed supported Minecraft version (1.21.1)
- Installed corresponding NeoForge version (21.1.200 or higher)
3-2:Installation Steps
- Download the latest version from the project's Release page
- Place the mod file in the client (or server)
mods folder
- Start the game, and the mod will automatically generate the default configuration file in the
config directory
- Edit the configuration file as needed
- Restart the server to apply changes
- Enjoy the clean console and logs brought by Log Sifter
IⅤ. Building from Source Code
If you want to build the plugin from source code, you need Java Development Kit (JDK) 21 or higher.
4-1:Build Steps
- Clone the repository:
git clone https://github.com/MC-Nirvana/log-sifter.git
- Enter the repository directory:
cd log-sifter
- Execute the build command:
./gradlew build
- Find the generated JAR file in the
build/libs/ directory
4-2:Development Environment Setup
- Recommended to use IntelliJ IDEA for development
- After importing the project, ensure Gradle dependencies download correctly
V. Contribution and Support
Welcome to submit bug reports and feature suggestions through GitHub Issues
5-1:Contribution Methods
- Submit code improvements and new feature implementations
- Improve documentation and translations
- Report bugs and security issues
- Participate in discussions and provide usage feedback
5-2:Best Practices for Submitting Pull Requests
- Fork the project and create a feature branch
- Write clear commit messages
- Ensure code complies with project coding standards
- Add corresponding test cases
- Keep Pull Requests focused on a single feature or fix
5-3:Developer Resources
- The project follows standard Git workflow
- Please ensure code passes all tests before submitting a Pull Request
- Maintain consistent code style, refer to existing code structure
VI. License
This project uses the MIT license open source license
VII. Support and Feedback
If you like this project, please consider:
- Giving the project a Star ⭐
- Sharing this project on social media
- Participating in project discussions and providing valuable feedback
VIII. Sponsorship Support
If you wish to support the continued development and maintenance of this project, you can sponsor through the following methods:
- ifdian - Sponsor through ifdian (suitable for mainland China users)
- PayPal - Sponsor through PayPal (suitable for overseas users)
Your sponsorship will be used for:
- Maintaining project infrastructure
- Buying french fries for the author at the dock :)
IX. Official Community
评论 0
登录后参与评分
还没有评论,来抢沙发吧