@Documented
@Retention(value=SOURCE)
@Target(value=TYPE)
public @interface Log4j
log.name(exp)is mapped to
if (log.isNameEnabled() { log.name(exp) }Here name is a place holder for info, debug, warning, error, etc. If the expression exp is a constant or only a variable access the method call will not be transformed. But this will still cause a call on the injected logger.
Modifier and Type | Optional Element and Description |
---|---|
java.lang.String |
category |
java.lang.Class<? extends LogASTTransformation.LoggingStrategy> |
loggingStrategy |
java.lang.String |
value |
java.lang.String |
visibilityId
If specified, must match the "id" attribute in a VisibilityOptions annotation to enable a custom visibility.
|
public abstract java.lang.String visibilityId
public abstract java.lang.Class<? extends LogASTTransformation.LoggingStrategy> loggingStrategy