2
We all know the importance of logs to the debug an application in a production environment.
Currently, I maintain the logs in an archive (/tmp/logs/app-logs.log
). The problem is that it can get heavy over time, since the number of logs tends to grow along with the application.
I also think that saving in the application database (Mysql) may not be very advantageous, since the volume of logs can be large and the amount of darlings would be monstrous.
The question is, can I keep the logs of my application in a file and go emptying it over time or there is some way a little more suitable to do this?