Re: Log4j2 in web Application

2018-08-14 Thread Matt Sicker
What I mean is that in my typical usage nowadays, I’m generally in Docker environments where I reuse the same config file in different applications while customizing them a little bit with environment variables (see 12factor.net for more info there). The alternative is that you can run more than o

Re: Log4j2 in web Application

2018-08-14 Thread Rajvinder Pal
Hi Matt, I am not familiar with the technical terms like global logging configs per application. Can you explain little more? I am curious to know about it. Thanks, Raj On Sun, Aug 12, 2018 at 8:30 PM, Matt Sicker wrote: > If you're only using one log4j2 config for the whole server, then it >

Re: Log4j2 in web Application

2018-08-12 Thread Matt Sicker
If you're only using one log4j2 config for the whole server, then it doesn't really matter which LoggerContext you're using as there should only be one (LoggerContext usually maps directly to a config file or similar config source). And yes, log4j-web is only useful in the context where you bundle

Re: Log4j2 in web Application

2018-08-10 Thread Rajvinder Pal
Thanks Jochen. Your reply is all i need. Regards, Raj On Fri, Aug 10, 2018 at 3:09 PM, Jochen Wiedmann wrote: > Hi, > > On Fri, Aug 10, 2018 at 10:48 AM Rajvinder Pal > wrote: > > > > Hi, > > > > I have a query regarding log4j2 initialization from external location. > Why > > cannot i initia

Re: Log4j2 in web Application

2018-08-10 Thread Jochen Wiedmann
Hi, On Fri, Aug 10, 2018 at 10:48 AM Rajvinder Pal wrote: > > Hi, > > I have a query regarding log4j2 initialization from external location. Why > cannot i initialize log4j2 by specifying System Property in Application > server as > > log4j.configurationFile : file:///d:/log4j2.xml > > and get L

Log4j2 in web Application

2018-08-10 Thread Rajvinder Pal
Hi, I have a query regarding log4j2 initialization from external location. Why cannot i initialize log4j2 by specifying System Property in Application server as log4j.configurationFile : file:///d:/log4j2.xml and get Logger in Java files. Why do i need log4j-web-2.9.1.jar? what extra functiona