Clearing the log file

Hi all,

Does anyone know if there is a way to clear the error.log file from within the controller and the model?

Why would you do that?

Hi rrd, I use the error.log file for debugging my code during development. Just during development while debugging a specific issue I want to clear the log file before writing to the log file again. This will save me from having to do this manually. I am open to better ways for debugging my code if you have some ideas.

You can use PHP unlink

This looks like it will do the trick. Thank you!