I'm using Lombok library in my project and have a problem with @Log4j2
annotation. Not sure why but it's not generating log
field in the class
.
But when I'm changing annotation to @Slf4j
it works, I can see it in IntelliJ IDEA 'Structure' tab.
I'm using gradle
as a build tool. Have few dependencies"
dependencies {
compileOnly("org.projectlombok:lombok")
compile("org.springframework.boot:spring-boot-starter-log4j2")
}