-
Notifications
You must be signed in to change notification settings - Fork 0
/
output.xml
41 lines (41 loc) · 2.45 KB
/
output.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
<templateSet group="output">
<template name="nlog" value="private static final org.slf4j.Logger LOGGER = org.slf4j.LoggerFactory.getLogger($class$.class);" description="New slf4j logger" toReformat="true" toShortenFQNames="true">
<variable name="class" expression="className()" defaultValue="" alwaysStopAt="false" />
<context>
<option name="JAVA_DECLARATION" value="true" />
</context>
</template>
<template name="ldeb" value="LOGGER.debug("$EXPR_DESC$:'{}'",$EXPR$);" description="debug" toReformat="true" toShortenFQNames="true">
<variable name="EXPR" expression="variableOfType("")" defaultValue=""EXPR"" alwaysStopAt="true" />
<variable name="EXPR_DESC" expression="escapeString(EXPR)" defaultValue="" alwaysStopAt="false" />
<context>
<option name="JAVA_STATEMENT" value="true" />
</context>
</template>
<template name="ltrace" value="LOGGER.trace("$EXPR$");" description="" toReformat="false" toShortenFQNames="true">
<variable name="EXPR" expression="" defaultValue="" alwaysStopAt="true" />
<context>
<option name="JAVA_EXPRESSION" value="true" />
<option name="JAVA_STATEMENT" value="true" />
</context>
</template>
<template name="lerr" value="LOGGER.error("$TEXT$ $VARNAME$ {}", $VAR$, $EXCEPTION$);" description="" toReformat="false" toShortenFQNames="true">
<variable name="VAR" expression="variableOfType("")" defaultValue="" alwaysStopAt="true" />
<variable name="VARNAME" expression="escapeString(VAR)" defaultValue="" alwaysStopAt="false" />
<variable name="EXCEPTION" expression="variableOfType("java.lang.Throwable")" defaultValue=""e"" alwaysStopAt="false" />
<variable name="TEXT" expression="" defaultValue="" alwaysStopAt="true" />
<context>
<option name="JAVA_STATEMENT" value="true" />
</context>
</template>
<template name="flog" value="private static final java.util.function.Consumer<String> FLOGGER = str -> LOGGER.debug("'{}'", str);" description="functional style logger" toReformat="true" toShortenFQNames="true">
<context>
<option name="JAVA_DECLARATION" value="true" />
</context>
</template>
<template name="fout" value="System.out::println" description="Functional style output to System.out" toReformat="true" toShortenFQNames="true">
<context>
<option name="JAVA_EXPRESSION" value="true" />
</context>
</template>
</templateSet>