Hello to everyone,
i need to specify the location of the configuration file (log4j2)
programmatically. I've searched all around the web but i've not found a
solution.
Thanks in advance.
Claudio Papa
-
To unsubscribe, e-mail:
Can you try setting System.setProperty(*log4j.configuration,
location_to_property_file);*
*
*
*this will work only if you have not initialized log4j. *
*
*
*
*
On Thu, Mar 7, 2013 at 2:37 AM, shadowitsilver-lo...@yahoo.it
shadowitsilver-lo...@yahoo.it wrote:
Hello to everyone,
i need to
In Log4j 2 it is the LoggerContext that is configured. You can cause the
LoggerContext to pick up its configuration in one of a couple of ways:
1. Set the log4j.configurationFile system property before calling Log4j.
This will allow you to have a default or single configuration.
2. Use one of