How to view and collect iOS device logs.