Annotation Type Flogger


@Retention(SOURCE) @Target(TYPE) public @interface Flogger
Causes lombok to generate a logger field.

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

Example:

 @Flogger
 public class LogExample {
 }
 
will generate:
 public class LogExample {
     private static final com.google.common.flogger.FluentLogger log = com.google.common.flogger.FluentLogger.forEnclosingClass();
 }
 
This annotation is valid for classes and enumerations.
See Also:
  • Optional Element Summary

    Optional Elements
    Modifier and Type
    Optional Element
    Description
    Sets the access level of the generated log field.
  • Element Details

    • access

      AccessLevel access
      Sets the access level of the generated log field. Default: AccessLevel.PRIVATE.
      Returns:
      The constructed Logger method will be generated with this access modifier.
      Default:
      PRIVATE