write log to one file