I am trying to implement @Slf4j with log4j. I have done the below code but I am not getting the log variable in class.getting compilation error. Could anybody tell me what things I am missing here.
Plugin are already present in eclipse for Annotation Processors
Maven dependency
<dependency>
<groupId>org.slf4j</groupId>
<artifactId>slf4j-api</artifactId>
<version>1.7.5</version>
</dependency>
<dependency>
<groupId>org.slf4j</groupId>
<artifactId>slf4j-log4j12</artifactId>
<version>1.6.1</version>
</dependency>
<dependency>
<groupId>org.slf4j</groupId>
<artifactId>slf4j-simple</artifactId>
<version>1.7.5</version>
</dependency>
<dependency>
<groupId>org.projectlombok</groupId>
<artifactId>lombok</artifactId>
<version>1.12.4</version>
<scope>provided</scope>
</dependency>
import lombok.extern.slf4j.Slf4j
@Slf4j
public class Main {
public static void main(String[] args) {
log.debug("Main Class");
}
}