public static class Log4j.Log4jLoggingStrategy extends LogASTTransformation.AbstractLoggingStrategy
loader
Modifier | Constructor and Description |
---|---|
protected |
Log4jLoggingStrategy(GroovyClassLoader loader) |
Modifier and Type | Method and Description |
---|---|
FieldNode |
addLoggerFieldToClass(ClassNode classNode,
java.lang.String logFieldName,
java.lang.String categoryName)
In this method, you are given a ClassNode, a field name and a category name, and you must add a new Field
onto the class.
|
boolean |
isLoggingMethod(java.lang.String methodName) |
Expression |
wrapLoggingMethodCall(Expression logVariable,
java.lang.String methodName,
Expression originalExpression) |
classNode, getCategoryName
protected Log4jLoggingStrategy(GroovyClassLoader loader)
public FieldNode addLoggerFieldToClass(ClassNode classNode, java.lang.String logFieldName, java.lang.String categoryName)
LogASTTransformation.LoggingStrategy
classNode
- the class that was originally annotated with the Log transformation.logFieldName
- the name of the logger fieldcategoryName
- the name of the logging categorypublic boolean isLoggingMethod(java.lang.String methodName)
public Expression wrapLoggingMethodCall(Expression logVariable, java.lang.String methodName, Expression originalExpression)