-
Notifications
You must be signed in to change notification settings - Fork 2
/
AndroidLog.xml
53 lines (53 loc) · 4.13 KB
/
AndroidLog.xml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
<templateSet group="AndroidLog">
<template name="logdt" value="android.util.Log.d(TAG, Thread.currentThread().getName() + " ### " + "$METHOD_NAME$: $content$");" description="Log.d(TAG, Thread + String)" toReformat="true" toShortenFQNames="true">
<variable name="METHOD_NAME" expression="methodName()" defaultValue="" alwaysStopAt="false" />
<variable name="content" expression="" defaultValue="" alwaysStopAt="true" />
<context>
<option name="JAVA_STATEMENT" value="true" />
</context>
</template>
<template name="loget" value="android.util.Log.e(TAG, Thread.currentThread().getName() + " ### " + "$METHOD_NAME$: $content$", $exception$);" description="Log.e(TAG, Thread + String, Exception)" toReformat="true" toShortenFQNames="true">
<variable name="METHOD_NAME" expression="methodName()" defaultValue="" alwaysStopAt="false" />
<variable name="content" expression="" defaultValue="" alwaysStopAt="true" />
<variable name="exception" expression="" defaultValue="e" alwaysStopAt="false" />
<context>
<option name="JAVA_STATEMENT" value="true" />
</context>
</template>
<template name="logit" value="android.util.Log.i(TAG, Thread.currentThread().getName() + " ### " + "$METHOD_NAME$: $content$");" description="Log.i(TAG, Thread + String)" toReformat="true" toShortenFQNames="true">
<variable name="METHOD_NAME" expression="methodName()" defaultValue="" alwaysStopAt="false" />
<variable name="content" expression="" defaultValue="" alwaysStopAt="true" />
<context>
<option name="JAVA_STATEMENT" value="true" />
</context>
</template>
<template name="logmt" value="android.util.Log.d(TAG, Thread.currentThread().getName() + " ### " + $content$);" description="Log thread, method name and its arguments" toReformat="true" toShortenFQNames="true">
<variable name="content" expression="groovyScript("def params = _2.collect {it + ' = [\" + ' + it + ' + \"]'}.join(', '); return '\"' + _1 + '() called' + (params.empty ? '' : ' with: ' + params) + '\"'", methodName(), methodParameters())" defaultValue="" alwaysStopAt="false" />
<context>
<option name="JAVA_STATEMENT" value="true" />
</context>
</template>
<template name="logrt" value="android.util.Log.d(TAG, Thread.currentThread().getName() + " ### " + "$METHOD_NAME$() returned: " + $result$);" description="Log thread and result of this method" toReformat="true" toShortenFQNames="true">
<variable name="METHOD_NAME" expression="methodName()" defaultValue="" alwaysStopAt="false" />
<variable name="result" expression="variableOfType(methodReturnType())" defaultValue="" alwaysStopAt="true" />
<context>
<option name="JAVA_STATEMENT" value="true" />
</context>
</template>
<template name="logwt" value="android.util.Log.w(TAG, Thread.currentThread().getName() + " ### " + "$METHOD_NAME$: $content$", $exception$);" description="Log.w(TAG, Thread + String, Exception)" toReformat="true" toShortenFQNames="true">
<variable name="METHOD_NAME" expression="methodName()" defaultValue="" alwaysStopAt="false" />
<variable name="content" expression="" defaultValue="" alwaysStopAt="true" />
<variable name="exception" expression="" defaultValue="e" alwaysStopAt="false" />
<context>
<option name="JAVA_STATEMENT" value="true" />
</context>
</template>
<template name="wtft" value="android.util.Log.wtf(TAG, Thread.currentThread().getName() + " ### " + "$METHOD_NAME$: $content$", $exception$);" description="Log.wtf(TAG, Thread + String, Exception)" toReformat="true" toShortenFQNames="true">
<variable name="METHOD_NAME" expression="methodName()" defaultValue="" alwaysStopAt="false" />
<variable name="content" expression="" defaultValue="" alwaysStopAt="true" />
<variable name="exception" expression="" defaultValue="e" alwaysStopAt="false" />
<context>
<option name="JAVA_STATEMENT" value="true" />
</context>
</template>
</templateSet>