Changes to log when an app is in the foreground/background