Ich möchte log4j2.xml (kann Eigenschaftendatei nicht verwenden) von einem absoluten Pfad. Ich habe folgende params in web.xml:Wie log4j2.xml absoluten Pfad in web.xml gesetzt
<context-param>
<param-name>log4jConfiguration</param-name>
<param-value>file:///etc/log4j2.xml</param-value>
</context-param>
basierend auf Apache Dokument, es sollte funktionieren, aber ich bekomme folgende Fehlermeldung:
ERROR StatusLogger No log4j2 configuration file found. Using default configuration: logging only errors to the console.
Auch ich gesetzt log4jContextName und isLog4jContextSelectorNamed Parameter, aber ich Fehler noch nicht.
Wenn ich log4j.properties (log4j 1.x) verwende, funktioniert es vollständig.