I assume most of you are aware of android.util.Log All logging methods accept \'String tag\' as a first argument.
And my question is How do you usually tag y
Go to Android Studio -> preference -> Live Templates -> AndroidLog then select Log.d(TAG, String).
In Template text replace
android.util.Log.d(TAG, "$METHOD_NAME$: $content$");
with
android.util.Log.d("$className$", "$METHOD_NAME$: $content$");
Then click Edit variables and enter className() in the Expression column next to the className Name column.
Now when you type the shortcut logd it will put
Log.d("CurrentClassName", "currentMethodName: ");
You dont need to define a TAG anymore.