Re: Multiple configuration files?

2014-08-11 Thread Remko Popma
> It seems to me that both files will be on the classpath (lib directory). How > do I know which one it will find first? > > -Original Message- > From: Remko Popma [mailto:remko.po...@gmail.com] > Sent: Friday, August 08, 2014 5:58 PM > To: Log4J Users List > S

Re: Multiple configuration files?

2014-08-11 Thread Ralph Goers
Arwen, Please note that the paragraphs below indicating the message is proprietary cannot apply to this message. This is a public mailing list and this message will be archived forever in at least 3 other places not under the control of the Apache Software Foundation. Please make sure to remov

RE: Multiple configuration files?

2014-08-11 Thread Arwen Pond
, 2014 5:58 PM To: Log4J Users List Subject: Re: Multiple configuration files? 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

Re: Multiple configuration files?

2014-08-08 Thread Remko Popma
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

Re: Multiple configuration files?

2014-08-08 Thread Matt Sicker
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 wrote: > I have multiple applications that use log4j. Some depend on others. For > example application A can be run independently and

Multiple configuration files?

2014-08-08 Thread Arwen Pond
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

RE: Multiple Configuration Files

2010-09-08 Thread Douglas E Wegscheid
ation." "Chris W. Dickinson" 09/08/2010 12:29 PM Please respond to "Log4J Users List" To cc Subject RE: Multiple Configuration Files Can anyone assist with this question? Or, if it's been answered before, at least point me in the direction of finding the a

RE: Multiple Configuration Files

2010-09-08 Thread Chris W. Dickinson
bject: Multiple Configuration Files I am developing against a third-party Java application. This application uses the command line configuration for log4j: -Dlog4j.configuration=log.prp I do not wish to overwrite the log.prp in the application, as it would create headaches when we upgrade the c

Multiple Configuration Files

2010-09-01 Thread Chris W. Dickinson
I am developing against a third-party Java application. This application uses the command line configuration for log4j: -Dlog4j.configuration=log.prp I do not wish to overwrite the log.prp in the application, as it would create headaches when we upgrade the core application software. However, I

RE: Log4J Multiple Configuration Files?

2007-05-29 Thread Jacob Kjome
uesday, May 29, 2007 11:22 AM > To: log4j-user@logging.apache.org > Subject: Log4J Multiple Configuration Files? > > Hello, > > > I have a large application with several packages that contain more > packages. > > I would like to have an xml config file for log4j for eac

RE: Log4J Multiple Configuration Files?

2007-05-29 Thread Jon Wilmoth
Have you tried using Xincludes? You'll need an XML parser that supports the XInclude pre-processing. -Original Message- From: John Doran [mailto:[EMAIL PROTECTED] Sent: Tuesday, May 29, 2007 11:22 AM To: log4j-user@logging.apache.org Subject: Log4J Multiple Configuration Files?

Log4J Multiple Configuration Files?

2007-05-29 Thread John Doran
Hello, I have a large application with several packages that contain more packages. I would like to have an xml config file for log4j for each package. (Having 1 large config file would be a pain to traverse through to change settings.) For example... -animals -dogs -cats

Re: Adding multiple configuration files to log4j

2006-06-26 Thread jaikiran pai
Thanks, James. Will try out RepositorySelector. -Jaikiran James Stauffer <[EMAIL PROTECTED]> wrote: Search for something called a RepositorSelector (or something like that). On 6/23/06, jaikiran pai wrote: > Hi, > Currently, i could not find a way to use add multiple files as configuratio

Re: Adding multiple configuration files to log4j

2006-06-24 Thread Jacob Kjome
You can [re]configure Log4j as many times as you want. Configuration is additive. Once reconfiguration does not blow away the old. I'm not sure what you describe is something Log4j ought to support at its core. You are welcome to create your own startup class that behaves this way and jus

Re: Adding multiple configuration files to log4j

2006-06-23 Thread James Stauffer
Search for something called a RepositorSelector (or something like that). On 6/23/06, jaikiran pai <[EMAIL PROTECTED]> wrote: Hi, Currently, i could not find a way to use add multiple files as configuration files for log4j. Here's why i needed the same: - I have a 3rd party application which

Adding multiple configuration files to log4j

2006-06-23 Thread jaikiran pai
Hi, Currently, i could not find a way to use add multiple files as configuration files for log4j. Here's why i needed the same: - I have a 3rd party application which uses log4j and has its configurations in log4j.xml - I am integrating my application with the 3rd party application. - My a

Re: Multiple configuration files

2005-04-06 Thread Henrik Bentel
Anyone? Impossible? Hope someone has some insight -Henrik On Mar 30, 2005 9:09 PM, Henrik Bentel <[EMAIL PROTECTED]> wrote: > Hi > > I'm trying to configure a repository using multiple log4j > configuration file (properties or xml format). > I've read previous posts from 2002 and 2003 on the su

Multiple configuration files

2005-03-30 Thread Henrik Bentel
Hi I'm trying to configure a repository using multiple log4j configuration file (properties or xml format). I've read previous posts from 2002 and 2003 on the subject which confirmed that this should possible. As additional configuration is read, Loggers and appenders are added to the Repository w