Try to log events in the background.