Open lduf opened 2 days ago
AI-Assisted Response:
Issue Category: Refactoring / Feature Request
Summary:
The current project setup deviates from the conventional Laravel logging system by using a custom ApiLog
model to store logs in the database. The issue requires refactoring the code to utilize Laravel's built-in logging mechanisms.
Details:
ApiLog
model, which stores log information in the database, should be phased out.ApiLog
model should be updated.ApiLog
model with Laravel's standard logging facilities.Potential Impact:
Suggestions for Issue Resolution:
ApiLog
is used and determine how the logs are currently consumed.config/logging.php
).ApiLog
to work with Laravel's logging system or remove them if no longer needed.These suggestions are a starting point and might not fully resolve the issue. Further investigation and a solid refactoring plan are needed.
ApiLog
model and associated views/controllers that need to be preserved in the new logging approach?Branch feature/issue-509-_REFACTOR_Use_Laravel_logging_system created!
What should be refactored?
We currently don't use the default Laravel logging system: very bad.
We should stop using ApiLog model which store in DB.
Use Laravel loggers to replace this :