Lazy logging with log4j2 in Java
The purpose of logging is to provide information about what is happening in the system, which requires including information about the objects being manipulated. In this blog post I will show you how can we achieve lazy logging with log4j 2.x framework. In Log4j 1.x this could be accomplished by doing The Problem with the…