Expand my Community achievements bar.

Use log4j 2.x.x with SLF4J on AEM 6.5.15

Avatar

Level 9

We are on AEM 6.5 with uber-jar-6.5.15

We are trying to use log4j 2.x.x in order to be able to use lambda expression in log statements. How can we achieve this?

Topics

Topics help categorize Community content and increase your ability to discover relevant content.

1 Reply

Avatar

Community Advisor

Hi @Kamal_Kishor ,

The Log4j 2 library has added support for Java 8 lambda expressions since version 2.4. These expressions can be used by the Logger interface to enable lazy logging.
What is the issue you are facing while using it? If there is anything of dependency conflict due to uber jar version then you can try to overwrite it by placing the dependency after uber jar.

 

-Tarun