write log to file