@Retention(SOURCE)
@Target(TYPE)
public @interface CommonsLog
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.| Modifier and Type | Optional Element | Description |
|---|---|---|
java.lang.String |
topic |
Copyright © 2009-2018 The Project Lombok Authors, licensed under the MIT licence.