Do applications A and B run in separate processes, or does B call some function 
in A without starting a new process for A? 

Log4j initializes only once in a given process. If A and B are in separate 
processes they can have separate configurations. If they run in the same 
process, they'll share a config. Which config file is used depends on your 
classpath and system properties when you started that process. 

Sent from my iPhone

> On 2014/08/09, at 3:28, Arwen Pond <[email protected]> wrote:
> 
> I have multiple applications that use log4j.  Some depend on others.  For 
> example application A can be run independently and has a log4j config file 
> under src/main/resources/log4j2.xml.  Application B invokes application A but 
> it has a different log4j config file in its resource directory.
> 
> When there are multiple  log4j2.xml files in the path how are they 
> used/found?  Are they additive?  Does it just use the first one it finds?
> 
> Thanks,
> Arwen
> 
> 
> 
> This electronic mail message contains information that (a) is or 
> may be CONFIDENTIAL, PROPRIETARY IN NATURE, OR OTHERWISE 
> PROTECTED 
> BY LAW FROM DISCLOSURE, and (b) is intended only for the use of 
> the addressee(s) named herein.  If you are not an intended 
> recipient, please contact the sender immediately and take the 
> steps necessary to delete the message completely from your 
> computer system.
> 
> Not Intended as a Substitute for a Writing: Notwithstanding the 
> Uniform Electronic Transaction Act or any other law of similar 
> effect, absent an express statement to the contrary, this e-mail 
> message, its contents, and any attachments hereto are not 
> intended 
> to represent an offer or acceptance to enter into a contract and 
> are not otherwise intended to bind this sender, 
> barnesandnoble.com 
> llc, barnesandnoble.com inc. or any other person or entity.

---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to