Is it safe to keep Log.i on production?

android, android-logcat

Solution

If the users connect the device to a computer and read the logcat, they can see all the log messages that your app generates.

A possible solution is use Proguard to remove (automatically) all the log messages.

More info on this answer: How to configure proguard to ONLY remove android logging calls

Hope it helps.

Problem

In my android application i extensively use `Log.i`, `Log.e`. On these commands I usually pass SQLite queries or http rest urls that communicate with my application. My question is: Is it safe to keep these logs when the application reaches the Play store ? If a user runs the application with his device connected on his computer will he be able to view the Log messages on his LogCat ?

Original source

Related problems