projectlombok / lombok

Very spicy additions to the Java programming language.
https://projectlombok.org/
Other
12.9k stars 2.39k forks source link

@Slf4j annotation can not find log.info() method #1855

Closed sun-shining closed 6 years ago

sun-shining commented 6 years ago

My idea version is 2017.3.4,i try to use Lombok plugin in my project. My stepts are: 1 Install Plugin 2 Restart IDE 3 Enable Annotation Processing 4 Added Lombok dependency to my project

butttt.... I still can not find info() method .Why???

image

image

rspilker commented 6 years ago

You should probably report an issue in the lombok-intellij-plugin issue tracker.

sun-shining commented 5 years ago

lombok only is not enough,you need slf4j and log4j. Someone met the same question can see:https://stackoverflow.com/questions/12532339/no-appenders-could-be-found-for-loggerlog4j

domainy commented 9 months ago

@rspilker I have created a demo for this issue using gradle and spring boot project from start.spring.io. Here is the repo - https://github.com/domainy/spring-lombok-issue