You will have to separately setup log4j. Struts does not come with it. In fact, if you want commons-logging to work with log4j, you will have to point it to the Log4J properties file.
-----Original Message----- From: Charlie Toohey [mailto:[EMAIL PROTECTED]] Sent: Tuesday, January 21, 2003 4:16 PM To: [EMAIL PROTECTED] Subject: does Struts 1.1b come with log4.properties ? I'm planning on using Struts 1.1b and using commons-logging in my webapp. I understand that Struts 1.1 uses commons-logging as well. But I was confused when I found the posting below. It implies that Struts itself comes with a configuration for Log4j. This confuses me because I am under the impression that Struts commons-logging will use whatever logging implementation you have setup for commons-logging, which is not necessarily Log4j. The post below implies that Struts has a log4j.properties file, but where is it ? Not in struts.jar. Can someone confirm that Struts and my webapp will share whatever logging implementation I have setup for commons-logging, and that if I choose Log4j, the will share the log4j.properties file and that Struts does not have its own log4j.properties file ? Thanks, Charlie =========================== * From: Aladar The Dinosaur * Subject: Re: Struts & log4j * Date: Thu, 05 Dec 2002 22:22:01 -0800 I got it figured out by perusing log4j mail archive. I had to set the rootLogger to "Error". Scott ----- Original Message ----- From: "Aladar The Dinosaur" <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Sent: Thursday, December 05, 2002 11:38 PM Subject: Struts & log4j > Hi, > > I was trying to setup log4j with struts application, and found that struts & > commons were already using it. Basically, the logging works, but I don't > want my application specific logs mingled with struts and some of the other > utilities I'm using. My log4j init file initializes rootLogger and > application specific loggers, and I would like to separate those. How do I > do this? > > If log4j is being initialized by struts (or commons) for that matter, will I > still be able to use my own log4j.properties file without the rootLogger > entry in it? Or, can I used the property file being used by struts and > commons and tag my entries in it? > > Can someone offer help? > Thank you. > > Scott > > > > -- > To unsubscribe, e-mail: <mailto:[EMAIL PROTECTED]> > For additional commands, e-mail: <mailto:[EMAIL PROTECTED]> > > > -- To unsubscribe, e-mail: <mailto:[EMAIL PROTECTED]> For additional commands, e-mail: <mailto:[EMAIL PROTECTED]> -- To unsubscribe, e-mail: <mailto:[EMAIL PROTECTED]> For additional commands, e-mail: <mailto:[EMAIL PROTECTED]>

