Add logging for the Activity lifecycle