On Thu, 14 Nov 2002 [EMAIL PROTECTED] wrote:
> Date: Thu, 14 Nov 2002 16:02:30 -0500 > From: [EMAIL PROTECTED] > Reply-To: Struts Users Mailing List <[EMAIL PROTECTED]> > To: Struts Users Mailing List <[EMAIL PROTECTED]> > Subject: RE: FormBean creation... > > > > Hi Craig, > > What happens when you have JDK 1.4 and log4j? > > Does it first use log4j? Yes. The reasoning is that inserting log4j.jar is optional, but if you're running JDK 1.4 you can't "remove" the java.util.logging classes. > > I have this in my log4j.properties in WEB-INF/classes but I do not see > any log messages: > > # Properties for configuring Log4j > # @author Shakeel Mahate > # @version $version$ > > > log4j.appender.topsy = org.apache.log4j.FileAppender > log4j.appender.topsy.File = topsy.log I'm not a Log4J guru, but shouldn't this be an absolute pathname? You can't rely on the current working directory from which your servlet container is running being a constant. > log4j.appender.topsy.Append = false > log4j.appender.topsy.layout = org.apache.log4j.PatternLayout > > # Use the default JBoss format > log4j.appender.Default.layout.ConversionPattern=[%d{ABSOLUTE},%c{1}] > %m%n > #log4j.appender.topsy.layout.ConversionPattern = %d{ABSOLUTE} [%t] %-5p > %-30.30c{2} %x - %m %n > > > # Any application log which uses Log4J will be logged to the Topsy log > file > log4j.rootCategory=DEBUG, topsy, Console > > # By default we don't log at the DEBUG level for Cactus log, in order > not to generate too > # many logs. However, should a problem arise and logs need to be sent to > the Cactus dev team, > # then we will ask you to change this to DEBUG. > log4j.category.com.abb.topsy = DEBUG, topsy, Console > log4j.additivity.com.abb.topsy=false > > # Don't show debug logs for Client package > log4j.category.com.abb.topsy.client = WARN, topsy > log4j.additivity.com.abb.topsy.client=false > log4j.category.client = WARN, topsy > log4j.additivity.client=false > > > log4j.category.org.apache.struts = DEBUG You'll probably also want log messages from the Commons modules (log4j.category.org.apache.commons). > > > > And on the same point, what's the deal with the web.xml > <servlet> > <servlet-name>action</servlet-name> > <servlet-class>org.apache.struts.action.ActionServlet > </servlet-class> > <init-param> > <param-name>config</param-name> > <param-value>/WEB-INF/struts-config.xml</param-value> > </init-param> > <init-param> > <param-name>debug</param-name> > <param-value>1</param-value> > </init-param> > <init-param> > <param-name>detail</param-name> > <param-value>1</param-value> > </init-param> > <load-on-startup>2</load-on-startup> > </servlet> > > What are these debug and detail setting? Those were just inherited from the Struts 1.0 world. They don't do anything any more in 1.1. > > Thanks, > > Shakeel Craig -- To unsubscribe, e-mail: <mailto:struts-user-unsubscribe@;jakarta.apache.org> For additional commands, e-mail: <mailto:struts-user-help@;jakarta.apache.org>