- Messaggio originale -
> Da: Ralph Goers
> A: Log4J Users List
> Cc:
> Inviato: Giovedì 7 Marzo 2013 19:00
> Oggetto: Re: Configuration file location programmatically
>
> In Log4j 2 it is the LoggerContext that is configured. You can cause the
> Logg
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
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, [email protected] <
[email protected]> wrote:
> Hello to everyone,
> i need
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: lo