![]() ![]()
Private static final int CALL_STACK_INDEX = 1 Let’s look at more cleaner and easier way to fix this issue.Īfter the fix, your logcat will be something similar to this.Īdd this class in your app code, and call it like LogUtil.d("MyTag", "My Custom Message") instead of Log.d("tag", "message"). Messages should be printed to the logcat.Now, some developers go to source code’s exact line by navigation ( Ctrl N) and searching about tag etc. (an Activity in this example, but it could be a service, an adapter,Īnything), and a boolean variable to represent whether or not log A global, static string is given to represent the specific class
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |