default write log to file.