logging-log4j-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Matt Sicker <boa...@gmail.com>
Subject Re: Multiple configuration files?
Date Fri, 08 Aug 2014 21:45:15 GMT
Only one file is used. If you want to combine multiple ones, you could use
XInclude or create a custom ConfigurationFactory.

On 8 August 2014 13:28, Arwen Pond <apond@book.com> 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
> 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.

Matt Sicker <boards@gmail.com>

  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message