Created
September 29, 2016 08:28
-
-
Save PaulWoitaschek/11201219842807d88027786f049db6a5 to your computer and use it in GitHub Desktop.
TM - logm IntelliJ life template for 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
<template name="tm" value="timber.log.Timber.d($content$);" description="Log method name and its arguments" toReformat="true" toShortenFQNames="true"> | |
<variable name="content" expression="groovyScript("def params = _2.collect {it + ' = [%s]'}.join(', '); return '\"' + _1 + '() called' + (params.empty ? '' : ' with: ' + params + ',') + '\"' + (_2.empty ? '' : ','+_2.join(','))", methodName(), methodParameters()) " defaultValue="" alwaysStopAt="false" /> | |
<context> | |
<option name="JAVA_STATEMENT" value="true" /> | |
</context> | |
</template> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment