logging - How to programmatically get android logs from a release build -
i've seen plenty of ways of getting system logs in android logcat , like, not app logs (except usual usb + adb solution).
my b2b android app produces useful logging created log.i calls. whilst in studio these useful debugging, useful these customer's installs when things go wrong, i.e. release build out in wild. customers not techies getting logs via adb isn't option.
is there way within app code grab log contents?
perhaps sdk provides way this?
i send server or email. i'm thinking it'll useful customers hit button can instantaneous snapshot of happening in app.
thanks in advance
update
there doesn't seem way this, aside writing file , sending file. guess solution any.
two other interesting ones have come are:
- firebase (from mohammed's comment) - can log events:https://firebase.google.com/docs/analytics/android/events
- instabug
we can write write logs file using java.util.logging.logger api.
how write logs in text file when using java.util.logging.logger
check out here writting crash log file
Comments
Post a Comment