@Retention(value=SOURCE) @Target(value=TYPE) public @interface XSlf4j
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.org.slf4j.ext.XLogger,
org.slf4j.ext.XLoggerFactory.getXLogger(Class target),
@CommonsLog,
@Log,
@Log4j,
@Log4j2,
@Slf4jpublic abstract String topic
Copyright © 2009-2015 The Project Lombok Authors, licensed under the MIT licence.