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 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 application also uses log4j and configures the same using say 
> myAppLog4j.xml.
> - I could have added(appended) my configurations to the log4j.xml used by the 
> 3rd party application
> - But i would like to maintain both these configurations in 2 files.
> - The way i tell log4j to configure using myAppLog4j.xml is by using:
>
> PropertyConfigurator.configure(Loader.getResource("myAppLog4j.xml"));
> Using this will make log4j configure *only* through myAppLog4j.xml. It would 
> be really great, if we could have a API, something like:
> addConfiguration(String fileName);
> or
> addConfiguration(File file);
> or maybe
> addConfiguration(Resource configResource);
> All these APIs would add the config file to a collection which will maintain 
> the configuration files.
> Log4j could then maintain a collection of configuration files to use for 
> configuring log4j.
> Is this possible? Or currently is there some way through which i can do the 
> same?
>
>
> regards,
> -Jaikiran
>
>
> ---------------------------------
> Yahoo! India Answers: Share what you know. Learn something new Click here
> Catch all the FIFA World Cup 2006 action on Yahoo! India Click here
>


-- 
James Stauffer
Are you good? Take the test at http://www.livingwaters.com/good/

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



                                
---------------------------------
 Yahoo! India Answers: Share what you know. Learn something new Click here
Catch all the FIFA World Cup 2006 action on Yahoo! India Click here

Reply via email to