0

I have a rails app, where the speed of the application reduces significantly as the size of the log file increases. I need to deleted my log file(backup) frequently to prevent this. What is the best practice to avoid this.

Regards, Pankaj

1 Answer 1

2

On a production environment, the ideal is to set logrotate rules for those logs (preferably daily).

We do it and never had performance issues due to logs.

Here's a brief article on how to use it.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.