Implementing an application logger that collects logs whenever the app crashes or runs into a problem