1

Can I publish any Android app without deleting Log.i() statements. Is it safe?

Bhaskar Jyoti Dutta
  • 1,558
  • 2
  • 12
  • 27

2 Answers2

0

The log statements will stay in the app and anyone can see them. You can prevent this by deleting the logs before publishing, having a check for debug mode before logging, or using something like proguard to remove them when you compile. Here's another question with more info.

Michael P
  • 150
  • 1
  • 7
0

No, the logs files are not removed ,
that is why many people use Timber library as the Timber logs are automatically removed. To know more about timber visit GitHub page of Timber

Gaurav
  • 177
  • 2
  • 14