

Now you have to find each one and remove it from your code for the release version.Īnother problem with the default logging mechanism is that you need to pass the TAG every time you write a log statement.

There are so many log statements all over your code. So, when releasing your application to the play store, it is recommended to remove all the log statements from your code.īut this can be a real pain.

Similarly, it is not recommended to have log statements in your release ready code, since those log statements can be read by anyone who connects their phone to a PC. These statements help you keep a track of flow control in your application. It is generally a good practice to place Log statements in your code. It is really helpful in debugging your code when debugging by break-point just won't work. Logging is one of the most used utilities in the Android framework. By Ayusch Jain How to log more efficiently with Timber
