Created
September 3, 2019 14:29
-
-
Save fergusonm/bc12dfe20562389c6064c1efa158ce66 to your computer and use it in GitHub Desktop.
Method level logging live template. Logs the method name with all arguments.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Saved as "mlog" with Kotlin statement applicability. (Obviously change to suit your own needs.) | |
android.util.Log.d("LOGLOGLOG", "$className$ $METHOD_NAME$() called with: " + $args$) | |
Params: | |
classname - kotlinClassName() | |
METHOD_NAME - kotlinFunctionName() | |
args - groovyScript("'\"' + _1.collect { it + ' = [\" + ' + it + ' + \"]'}.join(', ') + '\"'", functionParameters()) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment