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:

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

Popular posts from this blog

c# - Update a combobox from a presenter (MVP) -

How to understand 2 main() functions after using uftrace to profile the C++ program? -

How to put a lock and transaction on table using spring 4 or above using jdbcTemplate and annotations like @Transactional? -