Add Log File Separation for Info and Error Levels#283
Add Log File Separation for Info and Error Levels#283avirajsingh7 wants to merge 2 commits intomainfrom
Conversation
WalkthroughThe logging setup was updated to introduce a separate rotating file handler for error logs, in addition to the existing application log and console handlers. Log file paths were split into distinct variables for general and error logs, and log levels for each handler were explicitly set. Changes
Poem
📜 Recent review detailsConfiguration used: CodeRabbit UI 📒 Files selected for processing (1)
🔇 Additional comments (4)
✨ Finishing Touches
🪧 TipsChatThere are 3 ways to chat with CodeRabbit:
SupportNeed help? Create a ticket on our support page for assistance with any issues or questions. Note: Be mindful of the bot's finite context window. It's strongly recommended to break down tasks such as reading entire modules into smaller chunks. For a focused discussion, use review comments to chat about specific files and their changes, instead of using the PR comments. CodeRabbit Commands (Invoked using PR comments)
Other keywords and placeholders
CodeRabbit Configuration File (
|
Codecov ReportAll modified and coverable lines are covered by tests ✅ 📢 Thoughts on this report? Let us know! |
|
After investigating the logs setup, Vijay found that log streaming is already implemented, and everything is being sent to a single stream. Splitting logs by level (e.g., error/info) is turning out to be complex in ECS (sending only one stream of logs). This setup is much more straightforward on EC2, but not as flexible on ECS. Given the current limitations, we’ll need to Close this issue. |
Summary
This PR enhances the logging system by introducing two separate rotating file handlers:
Target issue is #234
Checklist
Before submitting a pull request, please ensure that you mark these task.
fastapi run --reload app/main.pyordocker compose upin the repository root and test.Summary by CodeRabbit