Get logs to write to the logs/ directory and fix deprecated events.