config: improve logback configuration with async appenders and env-based properties#247
config: improve logback configuration with async appenders and env-based properties#247
Conversation
Summary of ChangesHello @vLuckyyy, I'm Gemini Code Assist1! I'm currently reviewing this pull request and will post my feedback shortly. In the meantime, here's a summary to help you and other reviewers quickly get up to speed! This pull request significantly refactors the Logback configuration to enhance logging flexibility, performance, and maintainability. By introducing environment-variable-driven properties and asynchronous appenders, the system can now adapt more easily to different deployment environments while minimizing the performance impact of logging operations. The updated file rolling policy ensures efficient log management, and granular control over third-party library logging provides clearer insights into application behavior. Highlights
🧠 New Feature in Public Preview: You can now enable Memory to help Gemini Code Assist learn from your team's feedback. This makes future code reviews more consistent and personalized to your project's style. Click here to enable Memory in your admin console. Changelog
Using Gemini Code AssistThe full guide for Gemini Code Assist can be found on our documentation page, here are some quick tips. Invoking Gemini You can request assistance from Gemini at any point by creating a comment using either
Customization To customize Gemini Code Assist for GitHub experience, repository maintainers can create a configuration file and/or provide a custom code review style guide (such as PEP-8 for Python) by creating and adding files to a Limitations & Feedback Gemini Code Assist may make mistakes. Please leave feedback on any instances where its feedback is incorrect or counter productive. You can react with 👍 and 👎 on @gemini-code-assist comments. If you're interested in giving your feedback about your experience with Gemini Code Assist for Github and other Google products, sign up here. You can also get AI-powered code generation, chat, as well as code reviews directly in the IDE at no cost with the Gemini Code Assist IDE Extension. Footnotes
|
There was a problem hiding this comment.
Code Review
This pull request significantly improves the logging configuration by introducing environment-based properties, asynchronous appenders for better performance, and a more robust log rotation strategy. The changes make the logging setup much more flexible and suitable for a production environment. I have one minor suggestion to clean up the configuration slightly.
| <logger name="net.dv8tion.jda.internal" level="${JDA_INTERNAL_LOG_LEVEL}" /> | ||
| <logger name="com.neovisionaries.ws.client" level="WARN" /> | ||
| <logger name="okhttp3" level="WARN" /> | ||
| <logger name="okio" level="WARN" /> |
There was a problem hiding this comment.
There was a problem hiding this comment.
💡 Codex Review
Here are some automated review suggestions for this pull request.
Reviewed commit: 04f65e2bda
ℹ️ About Codex in GitHub
Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you
- Open a pull request for review
- Mark a draft as ready
- Comment "@codex review".
If Codex has suggestions, it will comment; otherwise it will react with 👍.
Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".
| <root level="info"> | ||
| <appender name="ASYNC_FILE" class="ch.qos.logback.classic.AsyncAppender"> | ||
| <queueSize>8192</queueSize> | ||
| <neverBlock>true</neverBlock> |
There was a problem hiding this comment.
Avoid dropping logs when async file queue fills
Setting neverBlock to true on the async file appender means log events are discarded once the queue is saturated (for example during bursty logging or slow disk I/O), and this configuration routes all root logging through async appenders only. That can silently lose warning/error evidence exactly during incidents, whereas the previous synchronous setup preserved those messages.
Useful? React with 👍 / 👎.
…sed properties