@Retention(value=SOURCE) @Target(value=TYPE) public @interface Log4j2
Complete documentation is found at the project lombok features page for lombok log annotations.
Example:
@Log4j2 public class LogExample { }will generate:
public class LogExample { private static final org.apache.logging.log4j.Logger log = org.apache.logging.log4j.LogManager.getLogger(LogExample.class); }This annotation is valid for classes and enumerations.
org.apache.logging.log4j.Logger
,
org.apache.logging.log4j.LogManager.getLogger(Class target)
,
@Log4j
,
@CommonsLog
,
@Log
,
@Slf4j
,
@XSlf4j
public abstract String topic
Copyright © 2009-2015 The Project Lombok Authors, licensed under the MIT licence.