append the log to the specified file