When I was using MIUI 9, I always got an error report when my application crashed, so I can find where the error easily. But now I changed my rom to a custom rom(LineageOS oreo) and now I can't find that error report anymore. Can anyone provide some solution? the error report looked like this ( attach.en.miui.com/forum/201410/04/180718hl8zzt3jjyvs3ot6.png )
You might take a look at ACRA as it allows you to send an email (to yourself) containing the Stacktrace and other relevant information as soon as your app crashes.
See: ACRA Setup