Take a look here:
http://logging.apache.org/log4j/2.x/faq.html#config_location


On Tue, May 13, 2014 at 2:20 PM, zafer aydin <[email protected]> wrote:

> Hello,
> In my Java application, I created an xml configuration file named
> "log4j2.xml" and put it under "Default Package". It works as expected.Now I
> want to change this location but I can't not do it. It seems that in
> previous version (log4j) it was possible to set xml config file location by
> "DOMConfigurator.configure" but with "log4j2" I cannot find similar
> function.How can I set the xml config file location in log4j2?
> Thanks.
>
> Zafer AYDIN

Reply via email to