Creates log.txt if doesn't exist; otherwise uses existing file.