Created
July 7, 2014 16:23
-
-
Save rolios/cf70a5323e59d19b0294 to your computer and use it in GitHub Desktop.
IntelliJ live template to create verbose logs with timber
This file contains 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
groovyScript("def result='Logger.tag(TAG).v(\"'+_1+' ['; _2.each { result+=it+'=%s, '}; if(_2.size() > 0) { result = result.substring(0, result.length()-2); }; result+=']\"'; _2.each { result+=', '+ it}; result+=');'; return result;", methodName(), methodParameters()) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment