Truncate log file on startup.