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 Log4j – Configuring Log4j 2 for instructions on how to configure Log4j 2
Java Code :
org.apache.logging.log4j.Logger logger = LogManager.getLogger(loggerName);
Attached is how my package directory looks like.