I'm trying to configure Spring (non boot) MVC project with log4j2 logging capabilities. Currently I've placed all *.properties files in a location that is not in the class path. I've used @PropertySource annotation for this configuration. I'm getting below 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
Any clue on how and where I've done wrong? if there are good references to check please do share.
@PropertySource, the properties files have to be in your classpath, either on your project, or on your web application server. - DamCx