I\'m currently writing a big project in java, with numerous classes, some classes are quiet small, that simply represent objects with only few methods. I have a logger set i
I recently found out this solution.
Use @Log4j
annotation with all the classes in which you wish using logger.
Benefits:
How to do this?
Pre-req: Install Lombok Plugin in your editor, add lombok dependency in your project.
Now for the definition part:
@Log4j2
public class TestClass {
TestClass() {
log.info("Default Constructor");
//With the help of lombok plugin, you'll be able to see the suggestions
}
}