Log Activity lifecycle events.