I have simple Maven Java-EE based on Jersey web service in my Eclipse that runs in Windows 10. Project is created from jersey-quickstart-webapp artifact. I'm trying to use Log4j logger, but can't find where to place log4j2.xml file. I was trying to place it together with source code java files, but logger complains regarding configuration file not found. What is the right place to keep configuration file?
In a Java EE application you are expected to use the server log method to avoid subtle vendor dependencies. Would that be enough for you?