reset_log function

Function that resets a log file.