-
Notifications
You must be signed in to change notification settings - Fork 14
/
slf4j.postfixTemplates
31 lines (25 loc) · 2.19 KB
/
slf4j.postfixTemplates
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
# Slf4j postfix templates
# getLogger
.getLogger : slf4j getLogger
java.lang.String [org.slf4j.LoggerFactory] → final org.slf4j.Logger $logger:"logger"$ = org.slf4j.LoggerFactory.getLogger($expr$);
java.lang.Class [org.slf4j.LoggerFactory] → final org.slf4j.Logger $logger:"logger"$ = org.slf4j.LoggerFactory.getLogger($expr$);
# logTrace
.logTrace : slf4j logTrace
java.lang.String [org.slf4j.Logger] → if($log:variableOfType("org.slf4j.Logger"):"logger"$.isTraceEnabled()) { $log:variableOfType("org.slf4j.Logger"):"logger"$.trace($expr$); }
java.lang.Throwable [org.slf4j.Logger] → if($log:variableOfType("org.slf4j.Logger"):"logger"$.isTraceEnabled()) { $log:variableOfType("org.slf4j.Logger"):"logger"$.trace($msg$, $expr$); }
# loggerDebug
.logDebug : slf4j logDebug
java.lang.String [org.slf4j.Logger] → if($log:variableOfType("org.slf4j.Logger"):"logger"$.isDebugEnabled()) { $log:variableOfType("org.slf4j.Logger"):"logger"$.debug($expr$); }
java.lang.Throwable [org.slf4j.Logger] → if($log:variableOfType("org.slf4j.Logger"):"logger"$.isDebugEnabled()) { $log:variableOfType("org.slf4j.Logger"):"logger"$.debug($msg$, $expr$); }
# loggerInfo
.logInfo : slf4j logInfo
java.lang.String [org.slf4j.Logger] → if($log:variableOfType("org.slf4j.Logger"):"logger"$.isInfoEnabled()) { $log:variableOfType("org.slf4j.Logger"):"logger"$.info($expr$); }
java.lang.Throwable [org.slf4j.Logger] → if($log:variableOfType("org.slf4j.Logger"):"logger"$.isInfoEnabled()) { $log:variableOfType("org.slf4j.Logger"):"logger"$.info($msg$, $expr$); }
# loggerWarn
.logWarn : slf4j logWarn
java.lang.String [org.slf4j.Logger] → $log:variableOfType("org.slf4j.Logger"):"logger"$.warn($expr$);
java.lang.Throwable [org.slf4j.Logger] → $log:variableOfType("org.slf4j.Logger"):"logger"$.warn($msg$, $expr$);
# loggerError
.logError : slf4j logError
java.lang.String [org.slf4j.Logger] → $log:variableOfType("org.slf4j.Logger"):"logger"$.error($expr$);
java.lang.Throwable [org.slf4j.Logger] → $log:variableOfType("org.slf4j.Logger"):"logger"$.error($msg$, $expr$);