Package lombok.extern.log4j
Annotation Type Log4j
-
@Retention(SOURCE) @Target(TYPE) public @interface Log4jCauses lombok to generate a logger field.Complete documentation is found at the project lombok features page for lombok log annotations.
Example:
@Log4j public class LogExample { }will generate:public class LogExample { private static final org.apache.log4j.Logger log = org.apache.log4j.Logger.getLogger(LogExample.class); }This annotation is valid for classes and enumerations.
-
-
Optional Element Summary
Optional Elements Modifier and Type Optional Element Description java.lang.Stringtopic
-