Skip to content

Instantly share code, notes, and snippets.

@rolios
Created July 7, 2014 16:23
Show Gist options
  • Save rolios/cf70a5323e59d19b0294 to your computer and use it in GitHub Desktop.
Save rolios/cf70a5323e59d19b0294 to your computer and use it in GitHub Desktop.
IntelliJ live template to create verbose logs with timber
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