You can create your own log utility class and use it,
What I do when I release my applications: I create my own log class using methods i, d, e, w, etc. and use this log class instead of Android, because then I can use a simple switch , such as boolean debug = true , according to which I write LogCat , or not. That way, I can leave all my log statements in the application. When you wrote your own journal class to use it throughout your application, you can simply replace everything,
Delete:
import android.util.Log;
Add
import your.package.Log;
Like this:
public class Log { public static void i(String logTag, String logString) { if (isLogsEnabled) { Log.i(logTag, logString); } } public static void v(String logTag, String logString) { if (isLogsEnabled) { Log.v(logTag, logString); } }
Logging is a very convenient debugging and diagnostic method used by developers. Use the logging class provided as part of the Android SDK to register important information about your application with LogCat, but before publishing, make sure you look at the application implementation, as the log has performance flaws.
Before launching the application, carefully review the log so that it does not use any sensitive data,
The log is very important, when your application is in test mode, the logs will provide the current status and script of your application on the current device. Therefore, it is very useful when updating your application.
Once a Google game rejected your application if they were found that your logging mechanism was breaking the rules.