I\'m trying to improve my optimization skills in Java. In order to achieve that, I\'ve got an old program I made and I\'m trying my best to make it better. In this program I\'m
When in static context you can't use LoggerFactory.getLogger(getClass())
OR LoggerFactory.getLogger(this.getClass().getName())
And then you have to use LoggerFactory.getLogger(ClassName.class)
Anyways I prefer Lombok's @Log4j2
, less code and does the job : https://projectlombok.org/api/lombok/extern/log4j/Log4j2.html