Added the file logger and the event listeners