Add tracking of events, errors, and log messages