Re: log4j for Tomcat and separate log4j config for each web app

2005-01-20 Thread Jacob Kjome
Quoting Ceki Gülcü <[EMAIL PROTECTED]>: > At 08:27 AM 1/20/2005, Jacob Kjome wrote: > > >BTW, hello-log4j.xml is missing from the Hello webapp in CVS. Also, where > >is DOMConfigurator? I realize it is deprecated in favor of > >JoranConfigurator, but it should be there for backward compatibility

Re: log4j for Tomcat and separate log4j config for each web app

2005-01-20 Thread Ceki Gülcü
At 08:27 AM 1/20/2005, Jacob Kjome wrote: BTW, hello-log4j.xml is missing from the Hello webapp in CVS. Also, where is DOMConfigurator? I realize it is deprecated in favor of JoranConfigurator, but it should be there for backward compatibility. Agreed. The omission of DOMConfigurator was involu

Re: log4j for Tomcat and separate log4j config for each web app

2005-01-20 Thread Ceki Gülcü
At 07:22 AM 1/20/2005, Jacob Kjome wrote: Maybe I'm missing something. You are saying that, although there is no autoconfiguration of non-default logger repositories, if one provides the "log4j/configuration-resource" , then the repository will be configured with the specified config file, whic

Re: log4j for Tomcat and separate log4j config for each web app

2005-01-19 Thread Jacob Kjome
BTW, hello-log4j.xml is missing from the Hello webapp in CVS. Also, where is DOMConfigurator? I realize it is deprecated in favor of JoranConfigurator, but it should be there for backward compatibility. I didn't see it in either log4j.jar or log4j-xml.jar (why does the latter jar exist, BTW?

Re: log4j for Tomcat and separate log4j config for each web app

2005-01-19 Thread Jacob Kjome
At 05:10 PM 1/19/2005 +0100, you wrote: >At 12:51 AM 1/19/2005, Jacob Kjome wrote: > >>I think there is an error in the tiny-webapp docs because there is no more >>automatic configuration of non-default logger repositories in Log4j-1.3, > >That is correct. > >>which the tiny-webapp assumes. > >tiny

Re: log4j for Tomcat and separate log4j config for each web app

2005-01-19 Thread Ceki Gülcü
At 12:51 AM 1/19/2005, Jacob Kjome wrote: I think there is an error in the tiny-webapp docs because there is no more automatic configuration of non-default logger repositories in Log4j-1.3, That is correct. which the tiny-webapp assumes. tiny-webapp does not assume that. I thought this was correcte

Re: log4j for Tomcat and separate log4j config for each web app

2005-01-19 Thread Ceki Gülcü
Hi James, I also noticed that ./server/classes/ does not work. Anyway, try ./common/classes/. It will work. I will update the docs momentarily. At 04:32 PM 1/19/2005, you wrote: >From INSTALL.txt: - Optionally, you can add a configuration file such as log4j.xml or log4j.properties in the class di

Re: log4j for Tomcat and separate log4j config for each web app

2005-01-19 Thread James Stauffer
> Yes but not as well. Is there any detail on that that I shoudl know? One thing that I found is that I can't use: org.apache.log4j.selector.servlet.ContextDetachingSCL - To unsubscribe, e-mail: [EMAIL PROTECTED] Fo

Re: log4j for Tomcat and separate log4j config for each web app

2005-01-19 Thread James Stauffer
>From INSTALL.txt: - Optionally, you can add a configuration file such as log4j.xml or log4j.properties in the class directory of your *web-server*. For Tomcat versions 4 or 5, that would be ./server/classes/ directory. When I do that it doesn't find log4j.xml. stdout.log: log4j: Trying to fin

Re: log4j for Tomcat and separate log4j config for each web app

2005-01-18 Thread Jacob Kjome
Quoting Ceki Gülcü <[EMAIL PROTECTED]>: > > James, > > Have a look at this document: > >http://www.qos.ch/logging/sc.jsp > > > Following that, CVS check out log4j 1.3 and consult the examples > located under ./examples/tiny-webapp/ > > Although the documentation in ./examples/tiny-webapp/ is u

Re: log4j for Tomcat and separate log4j config for each web app

2005-01-18 Thread Ceki Gülcü
At 07:54 PM 1/18/2005, you wrote: Do you know if Tomcat 5.0 sets the RepositorySelector? Would I have to use the code on that page to set the RepositorySelector? Tomcat 5.0 does not set the RepositorySelector. You can set the repository selector by setting the log4j.repositorySelectorClass system

Re: log4j for Tomcat and separate log4j config for each web app

2005-01-18 Thread James Stauffer
Do you know if Tomcat 5.0 sets the RepositorySelector? Would I have to use the code on that page to set the RepositorySelector? - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]

Re: log4j for Tomcat and separate log4j config for each web app

2005-01-18 Thread Ceki Gülcü
At 07:15 PM 1/18/2005, James Stauffer wrote: On Tue, 18 Jan 2005 19:10:29 +0100, Ceki Gülcü <[EMAIL PROTECTED]> wrote: > Have a look at this document: > >http://www.qos.ch/logging/sc.jsp > > Following that, CVS check out log4j 1.3 and consult the examples > located under ./examples/tiny-webapp/

Re: log4j for Tomcat and separate log4j config for each web app

2005-01-18 Thread James Stauffer
On Tue, 18 Jan 2005 19:10:29 +0100, Ceki Gülcü <[EMAIL PROTECTED]> wrote: > Have a look at this document: > >http://www.qos.ch/logging/sc.jsp > > Following that, CVS check out log4j 1.3 and consult the examples > located under ./examples/tiny-webapp/ Does that work with 1.2.9?

RE: log4j for Tomcat and separate log4j config for each web app

2005-01-18 Thread Ceki Gülcü
At 02:43 PM 1/18/2005, you wrote: AFAIK there will be only one log4j configuration per Tomcat. See http://www.qos.ch/logging/sc.jsp -- Ceki Gülcü The complete log4j manual: http://www.qos.ch/log4j/ - To unsubscribe, e-mail: [EMA

Re: log4j for Tomcat and separate log4j config for each web app

2005-01-18 Thread Ceki Gülcü
James, Have a look at this document: http://www.qos.ch/logging/sc.jsp Following that, CVS check out log4j 1.3 and consult the examples located under ./examples/tiny-webapp/ Although the documentation in ./examples/tiny-webapp/ is up to date, certain important details in log4j 1.3 ContextJNDISelec

Re: log4j for Tomcat and separate log4j config for each web app

2005-01-18 Thread James Stauffer
I have log4j.jar in WEB-INF/lib and common/lib (so Tomcat can use it). I have log4j.xml in WEB-INF/classes and common/classes. It appears that once it is configured once for Tomcat it won't do it for the app. - To unsubscribe, e-m

Re: log4j for Tomcat and separate log4j config for each web app

2005-01-18 Thread Joerg Eggink
Hi James Did you try the following: 1. add log4j.jar to your application WEB-INF/lib 2. add log4j.xml to your WEB-INF/classes 3. connect from your application with e.g. private static Logger logger = null; logger.getLogger(CategoryName).log(CategoryName, Level.INFO, message,null); I remeber that l

Re: log4j for Tomcat and separate log4j config for each web app

2005-01-18 Thread James Stauffer
I am unable to get that to work. If there is no web site that explains how to do that then I can post what I have tried and what happened. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTEC

RE: log4j for Tomcat and separate log4j config for each web app

2005-01-18 Thread OOMS DIRK
TECTED] > Sent: dinsdag 18 januari 2005 14:59 > To: Log4J Users List > Subject: Re: log4j for Tomcat and separate log4j config for > each web app > > > > AFAIK there will be only one log4j configuration per Tomcat. > That would definitely explain some of my problems. :-) &

Re: log4j for Tomcat and separate log4j config for each web app

2005-01-18 Thread James Stauffer
> AFAIK there will be only one log4j configuration per Tomcat. That would definitely explain some of my problems. :-) I thought I saw somwhere that it was supported and that org.apache.log4j.spi.LoggerRepository was used to support it. -

RE: log4j for Tomcat and separate log4j config for each web app

2005-01-18 Thread OOMS DIRK
AFAIK there will be only one log4j configuration per Tomcat. If you want to differentiate logging behavior between your applications you either: - have a Logger per application OR - if you already have a Logger per class, you could make use of the hierarchy in log4j and change logging behavior on s

log4j for Tomcat and separate log4j config for each web app

2005-01-18 Thread James Stauffer
I have seen info on how to use log4j for Tomcat and I have seen info on how to use log4j for a web app, but I haven't seen info on how to use log4j for Tomcat logging with a separate config for each app. I am having troubles getting that to work. Does anyone know of a web page that explains that?