1

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

Bhaskar Jyoti Dutta
  • 1,740
  • 2
  • 15
  • 30

2 Answers2

1

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
  • 197
  • 2
  • 15
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
  • 225
  • 3
  • 11