save event log to text file