Closed rong-xiaoli closed 3 days ago
[!IMPORTANT]
Review skipped
Auto reviews are disabled on base/target branches other than the default branch.
Please check the settings in the CodeRabbit UI or the
.coderabbit.yaml
file in this repository. To trigger a single review, invoke the@coderabbitai review
command.You can disable this status message by setting the
reviews.review_status
tofalse
in the CodeRabbit configuration file.
The pull request modifies multiple classes to replace the existing ElysiaLogger
with MiraiLogger
for logging purposes. This change is implemented across the Elysia
, DailyFortune
, DelayedDisposer
, PicturesPlugin
, and Ping
classes. The updates involve removing static logger fields, adjusting logging method calls, and eliminating the use of a NAME
constant in log messages. The overall control flow and functionality of the plugins remain unchanged, focusing solely on enhancing the logging framework used throughout the codebase.
File | Change Summary |
---|---|
src/main/java/top/rongxiaoli/Elysia.java |
Removed static ElysiaLogger field; replaced with getLogger() method for logging in onEnable . |
src/main/java/top/rongxiaoli/plugins/DailyFortune/DailyFortune.java |
Replaced ElysiaLogger with MiraiLogger ; updated logging calls; removed NAME constant. |
src/main/java/top/rongxiaoli/plugins/PicturesPlugin/DelayedDisposer.java |
Changed logger from ElysiaLogger to MiraiLogger ; updated logging statements; added sleep in Shutdown . |
src/main/java/top/rongxiaoli/plugins/PicturesPlugin/PicturesPlugin.java |
Updated to use MiraiLogger ; removed NAME constant; adjusted logging calls. |
src/main/java/top/rongxiaoli/plugins/Ping/Ping.java |
Transitioned from ElysiaLogger to MiraiLogger ; simplified log messages; removed NAME constant. |
Objective | Addressed | Explanation |
---|---|---|
Use MiraiLogger instead of ElysiaLogger (#37) |
✅ | |
Remove static logger initialization (#37) | ✅ | |
Simplify log messages by removing NAME constant (#37) |
✅ |
Elysia
class, which is relevant to the logging updates in the DailyFortune
, DelayedDisposer
, PicturesPlugin
, and Ping
classes, as they all transition from ElysiaLogger
to MiraiLogger
.code/features
🐇 In the code where the loggers play,
A new friend, Mirai, came to stay.
Elysia's whispers fade away,
With clearer logs, we'll find our way.
So hop along, let errors sway,
In this bright code, we’ll leap and play! 🌟
Thank you for using CodeRabbit. We offer it for free to the OSS community and would appreciate your support in helping us grow. If you find it useful, would you consider giving us a shout-out on your favorite social media?
@coderabbitai review
@coderabbitai review
Fixed #37.
Summary by CodeRabbit
Release Notes
Bug Fixes
Refactor
ElysiaLogger
withMiraiLogger
in various classes, ensuring a unified logging approach.Chores
ElysiaLogger
class to eliminate redundancy.