Reputation: 11
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?
Upvotes: 1
Views: 1493
Reputation: 8100
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.
Upvotes: 4