The infrastructure to record the events to JSON files