Log file should be in append mode by default