1

My application is already running live and cannot afford to be stopped. I have found that the log file debug.log and error.log are about 1GB in size. I have already corrected all errors possibles. My question is can I simply delete the 2 files? Will Cakephp automatically create 2 new empty log files?

1 Answer 1

4

Yes you can delete them and CakePHP will recreate them if required (assuming webserver has proper write permissions to the directory).

You probably must be using a pretty old version of CakPHP as newer 2.x versions have log file rotation which avoids build up of such large files.

Sign up to request clarification or add additional context in comments.

Comments

Your Answer

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

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.