Package lombok.extern.slf4j
Annotation Type XSlf4j
@Retention(SOURCE)
@Target(TYPE)
public @interface XSlf4j
Causes lombok to generate a logger field.
Complete documentation is found at the project lombok features page for lombok log annotations.
Example:
@XSlf4j
public class LogExample {
}
will generate:
public class LogExample {
private static final org.slf4j.ext.XLogger log = org.slf4j.ext.XLoggerFactory.getXLogger(LogExample.class);
}
This annotation is valid for classes and enumerations.-
Optional Element Summary
Optional Elements Modifier and Type Optional Element Description java.lang.Stringtopic
-
Element Details
-
topic
java.lang.String topic- Returns:
- The category of the constructed Logger. By default, it will use the type where the annotation is placed.
- Default:
- ""
-