I have created another class and also created Log4j2.xml and configure the file location, log name, and package name in XML file but after running the application log file is not generating but logs are showing in console.
Below screenshot for reference.
