I am about to release an app. Should I remove Log
statements and e.printStackTrace()
within the catch
statements ?
Logs are essential troubleshooting resources, even for deployed software.
I would limit logging for production releases (perhaps even limit it to "only log in emergencies"). But I would not categorically say "no logging".
Here is a good discussion (with some good guidelines):
PS: Having said that, I hasten to add:
No, you should not have any "debug" or "informational" logging in a production release.
Which is exactly what the Android documentation, cited in the above links, also says.