Annotation Type Log

public @interface Log
Causes lombok to generate a logger field.

Complete documentation is found at the project lombok features page for lombok log annotations.


 public class LogExample {
will generate:
 public class LogExample {
     private static final java.util.logging.Logger log = java.util.logging.Logger.getLogger(LogExample.class.getName());
This annotation is valid for classes and enumerations.
See Also:
java.util.logging.Logger, java.util.logging.Logger#getLogger(java.lang.String), CommonsLog, Log4j, Log4j2, Slf4j, XSlf4j, JBossLog, Flogger, CustomLog
  • Optional Element Summary

    Optional Elements 
    Modifier and Type Optional Element Description
    java.lang.String topic  
  • Element Details

    • topic

      java.lang.String topic
      The category of the constructed Logger. By default, it will use the type where the annotation is placed.