write all log file