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
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
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
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
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
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
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
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
- 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
- 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
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
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
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
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
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
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
16 matches
Mail list logo