Change log to append mode.