problem with size of debug.log file

debug.log is exactly what it sounds – it’s just a file that contains log information for debugging purposes.

You can easily delete it and without any fear.

But…

  1. Debugging should not be turned on on production site – it’s a security problem.

  2. If your debug.log file is so big, then your site has many problems. This file contains PHP notices, warnings and errors. If everything works fine, then this file is almost empty.

So the smart thing to do is:

  • download that file to your local machine,
  • delete it from server
  • check the content of that file and try to fix as much problems as you can
  • disable logging or at least make that file inaccessible.