I believe that solves that problem.  Thank you very much for your reply!

- Jason Black


On Mon, May 13, 2013 at 10:44 AM, Remko Popma <[email protected]> wrote:

> By default Log4j looks for log4j2.xml in the classpath, but you can also
> specify system property
> -Dlog4j.configurationFile=path/to/log4j2.xml
>
> or even in your code:
>
> System.setProperty(XMLConfigurationFactory.CONFIGURATION_FILE_PROPERTY, 
> "path/to/log4j2.xml");
>
>
>
> ________________________________
>  From: Jason B <[email protected]>
> To: [email protected]
> Sent: Tuesday, May 14, 2013 1:32 AM
> Subject: Convient way to specify Log4J2 configuration outside of webapp?
>
>
> Hello,
>
> I'm wondering if there is a convenient way to configure Log4J2 logging
> without having it inside of our resources directory.  I don't want to use
> symbolic links, as that has the potential of introducing security holes
> into our platform.
>
> We're looking into other options such as specifying file locations, but the
> documentation is incomplete or does not apply to our unique solution.
>
> Could some light be shed on this?
>
> Thanks,
>
> Jason Black
>

Reply via email to