Annotation Type CommonsLog
Causes lombok to generate a logger field.
Complete documentation is found at the project lombok features page for lombok log annotations.
Example:
@CommonsLog public class LogExample { }will generate:
public class LogExample { private static final org.apache.commons.logging.Log log = org.apache.commons.logging.LogFactory.getLog(LogExample.class); }This annotation is valid for classes and enumerations.
- See Also:
-
Optional Element Summary
-
Element Details
-
topic
String topic- Returns:
- The category of the constructed Logger. By default, it will use the type where the annotation is placed.
- Default:
""
-