How can I unit test whether my app logs as expected with log4j2?
I tried using reflection, but in my case sl4fj creates a final logger. This means I can’t customize it.
Log4J2.xml file is not generating a log file
I’m having an issue with my Log4J2.xml file. It is placed in the resources folder. It seems that my log4j2.xml file is literally being ignored by Springboot. Attached is the XML configurations.