"No Log4j 2 configuration file found" when using Log4j2


I am trying to develop a logging framework and I am using Log4j2 for that. I have created a new package and imported below jars as well. But when I try to initialize LogManager, I get below warning and configuration does not load. Does anyone have any idea what could be wrong ?

Jars imported :

Warning Message :
ERROR StatusLogger No Log4j 2 configuration file found. Using default configuration (logging only errors to the console), or user programmatically provided configurations. Set system property ‘log4j2.debug’ to show Log4j 2 internal initialization logging. See https://logging.apache.org/log4j/2.x/manual/configuration.html for instructions on how to configure Log4j 2

Java Code :

org.apache.logging.log4j.Logger logger = LogManager.getLogger(loggerName);
log.debug(“Test Log”);

Attached is how my package directory looks like.


There is one available at tech community for public use, hope it might help.


Meanwhile, I can check this error and try to post a working sample.