I would like to enable my debug statements at runtime in log4j2. According to the documentation, we can do this. I saved the log4j.xml file in the default package, and then made a jar from it. Since I cannot change the jar, I specified the xml file using Dlog4j.configuration = / path / to / log4j.xml. However, this does not work. I tried everything using the file: // uri for the whole combination, but it does not select xml.
source
share