make EventLogger not global