unlink the log file when opening it so you get a new file