Hi Steven

Have you looked at using separate and different log4j2.xml files inside
each app (.war files) rather than using command line configurations?

Thanks
Kamal

-----------------------
www.digizol.com


On Tue, Apr 12, 2016 at 4:10 PM Steven Yang <kenshin...@gmail.com> wrote:

> Hi
>
> I am trying to deploy 2 applications in to one tomcat (originally in 2
> separate tomcat).
> And I use -Dlog4j.configurationFile to specify my log4j configuration.
> However, if I do that both applications will write to the same file.
> I want each application to write to there own files.
> Both applications have very similar packages and share many common
> libraries developed in-house, so using package name to separate logs will
> not be what we want.
>
> What is the best solution/practice to this kind of problem?
>
> (using log4j 2.5)
>
> Thanks
>

Reply via email to