Annotation Type JBossLog
Causes lombok to generate a logger field.
Complete documentation is found at the project lombok features page for lombok log annotations.
Example:
@JBossLog
public class LogExample {
}
will generate:
public class LogExample {
private static final org.jboss.logging.Logger log = org.jboss.logging.Logger.getLogger(LogExample.class);
}
This annotation is valid for classes and enumerations.- See Also:
-
Optional Element Summary
Optional ElementsModifier and TypeOptional ElementDescriptionSets the access level of the generated log field.
-
Element Details
-
access
AccessLevel accessSets the access level of the generated log field. Default:AccessLevel.PRIVATE.- Returns:
- The constructed Logger method will be generated with this access modifier.
- Default:
PRIVATE
-
topic
String topic- Returns:
- The category of the constructed Logger. By default, it will use the type where the annotation is placed.
- Default:
""
-