Hi !! , I have a question , my logs are not printing in the production environment, but they are being printed in stage environment.. all timer logs are appearing , what could be the reason?
Unfortunately, my project includes a number of library JARs and is deployed remotely. This completely changes the game. The library JARs are packaged into on deployment JAR and log4j2 outputs all logging for those as well as my application. In addition it is not clear where the log4j2 configuration file should be deployed. I don't want it in a project resources folder because then it is packaged into the deployable JAR and I cannot reconfigure my logging. Also, whether I put the log4j2 configuration file in /home/user/application or home/user/application/dist makes no difference. The deployed JAR cannot find it when executed. I have tried working through the Apache documentation, but theoretical physics is probably easier to understand and certainly better presented. Under huge pressure to get the job done I am thinking of either writing something myself or looking for alternatives.
Thank you. Very usefull. I Have some questions 1.log4j and log4j2 both have same functionality? can we use anyone of that? 2.instead of using properties file how can we use xml configuration file ? Is there any changes we need to do if we we want to use xml configuration.
Hi we are using spring boot java application , spring boot by default providing the log4j-api 2.12.2 jar and log4j-to slf4j jar files. We are not using only slf4j, and we didn't used these in pom.xml file, but safer we just added log 4j- 2.15 version jar. There will be any problem or Is there any alternate?