Logs events into files based on user input and date