RE: Re: Urgent Please--How to create different log files with different property files in same webapplication

2007-06-27 Thread sivamma
Hi, Thank You So much. I am not very clear about repositoryselectors.I tried to check some examples and tried to implement. Our application will be used by others as a library.We will provide jsps ,jar files and some property files including log4j property file. All our property files will

Re: Urgent Please--How to create different log files with different property files in same webapplication

2007-06-26 Thread sivamma
Hi I tried to implement the repository selectors.But still problems occurs. Please find my repository selector below. However i am not using Servlets to initialize the log4j. So Even to implement repository selector i am not using servlets. Our customers requested us to not use servlets.Since we

Re: Urgent Please--How to create different log files with different property files in same webapplication

2007-06-26 Thread James Stauffer
Since JSPs are compiled into servlets you should be able to do almost anything in a JSP that you can do in a servlet. On 6/26/07, sivamma [EMAIL PROTECTED] wrote: However i am not using Servlets to initialize the log4j. So Even to implement repository selector i am not using servlets. Our

RE: Re: Urgent Please--How to create different log files with different property files in same webapplication

2007-06-26 Thread Bender Heri
Your Implementation of repository selector is quite useless, because your distinction criteria relies on the current classloader. Log4j's default repository selector does this already for you. It is a singleton within the scope of one distinct classloader. If annother classloader comes onto

RE: Re: Urgent Please--How to create different log files with different property files in same webapplication

2007-06-26 Thread sivamma
Hi, Thank You So much. I am not very clear about repositoryselectors.I tried to check some examples and tried to implement. Our application will be used by others as a library.We will provide jsps ,jar files and some property files including log4j property file. All our property files will be

Urgent Please--How to create different log files with different property files in same webapplication

2007-06-25 Thread sivamma
Hi, I have a requirement to create different log files in same application.Our application will be used in a different web application.Even the other application is using log4j.We have our own log4j configuration property(WEB-INF/config.properties) file and separate log file in a particular

Re: Urgent Please--How to create different log files with different property files in same webapplication

2007-06-25 Thread James Stauffer
If xyz and abc are different web apps then moving log4j.jar and log4j.xml from common to WEB-INF/lib should keep the logs separate. If they are in the same web app then they probably have different logger name roots so you can configure each to use a different appender. (i.e com.abc uses one

Re: Urgent Please--How to create different log files with different property files in same webapplication

2007-06-25 Thread James Stauffer
Can you better explain the relationship between abc and xyz? It sounds like xyz uses abc as a library and that abc also runs by itself. Repository selectors might help. On 6/25/07, sivamma [EMAIL PROTECTED] wrote: We dont know exactly how log4j is handled at XYZ(They are our customers).But

Re: Urgent Please--How to create different log files with different property files in same webapplication

2007-06-25 Thread Bixler, Scott
- Original Message - From: sivamma [EMAIL PROTECTED] To: log4j-user@logging.apache.org log4j-user@logging.apache.org Sent: Mon Jun 25 09:11:16 2007 Subject: Re: Urgent Please--How to create different log files with different property files in same webapplication Hi, Thank you for

Re: Urgent Please--How to create different log files with different property files in same webapplication

2007-06-25 Thread Bixler, Scott
- Original Message - From: sivamma [EMAIL PROTECTED] To: log4j-user@logging.apache.org log4j-user@logging.apache.org Sent: Mon Jun 25 09:11:16 2007 Subject: Re: Urgent Please--How to create different log files with different property files in same webapplication Hi, Thank you for

Re: Urgent Please--How to create different log files with different property files in same webapplication

2007-06-25 Thread James Stauffer
How exactly is log4j configured from abc and xyz? Directly through code? Code referencing a config file? log4j automatically finding a config file? On 6/25/07, sivamma [EMAIL PROTECTED] wrote: Hi, Thank you for immediate reply. The problem is little different here.XYZ and abc are in same

Re: Urgent Please--How to create different log files with different property files in same webapplication

2007-06-25 Thread sivamma
Hi, Thank you for immediate reply. The problem is little different here.XYZ and abc are in same application.XYZ is using abc's jar files and jsps. Our application(abc) have our own log4j configuration property file at WEB-INF folder of XYZ(WEB-INF is common for both of XYZ and abc). We are

Re: Urgent Please--How to create different log files with different property files in same webapplication

2007-06-25 Thread sivamma
We dont know exactly how log4j is handled at XYZ(They are our customers).But in abc , we are referring a config file through our code. Please find our java code. == package com.CK; import java.io.File; import

Re: Urgent Please--How to create different log files with different property files in same webapplication

2007-06-25 Thread James Stauffer
So does only your customer have the problem of mixed logs? It sounds like they just need to change their config if they don't want mixed logs. But knowing how customers can be repository selectors might keep the logs separate without the customer changing their config. On 6/25/07, sivamma

Re: Urgent Please--How to create different log files with different property files in same webapplication

2007-06-25 Thread sivamma
Can you please explain me more.How to implement repository selectors.Please send me some examples. I tried to find in FAQs and some docs.But its not clear to me. Thanks Regards, Sivamma. So does only your customer have the problem of mixed logs? It sounds like they just need to change their

Re: Urgent Please--How to create different log files with different property files in same webapplication

2007-06-25 Thread James Stauffer
Search the mailing list archives. I have never used them -- I am just somewhat familiar with what they do. On 6/25/07, sivamma [EMAIL PROTECTED] wrote: Can you please explain me more.How to implement repository selectors.Please send me some examples. I tried to find in FAQs and some docs.But