Package lombok

Annotation Type CustomLog

@Retention(SOURCE) @Target(TYPE) public @interface CustomLog
Causes lombok to generate a logger field based on a custom logger implementation.

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


 public class LogExample {
With configuration:
will generate:
 public class LogExample {
     private static final log =;

Configuration must be provided in lombok.config, otherwise any usage of this annotation will result in a compile-time error. This annotation is valid for classes and enumerations.

See Also:
  • Optional Element Summary

    Optional Elements
    Modifier and Type
    Optional Element
    Sets a custom topic/category.
  • Element Details

    • topic

      String topic
      Sets a custom topic/category. Note that this requires you to specify a parameter configuration for your custom logger that includes TOPIC.
      The topic/category of the constructed Logger. By default (or for the empty string as topic), the parameter configuration without TOPIC is invoked.