Hmm, if you have the JAR file deployed correctly and the log4j.poperties
in the right place then, with that configuration, I would expect you to
get flooded with debug logging :-) The only thing I can think of is to
add an explicit category, such as
log4j.logger.org.apache.struts=DEBUG
though that shouldn't be necessary...
L.
Jim Reynolds wrote:
Yes, it is there.
On 1/11/06, Laurie Harper <[EMAIL PROTECTED]> wrote:
Did you put a copy of log4j.jar in WEB-INF/lib?
L.
Jim Reynolds wrote:
Hello,
I am creating a Struts webapp, and I would like to get some of the
internal messages that struts throws out ... eg. Bean Creation, scope,
etc.
I created a log4j.properties and laid it into my /WEB-INF/classes directory ...
log4j.rootCategory=DEBUG, R
log4j.appender.R=org.apache.log4j.RollingFileAppender
log4j.appender.R.File=C:/logs/cpe1.log
log4j.appender.R.MaxFileSize=1500KB
log4j.appender.R.MaxBackupIndex=10
log4j.appender.R.layout=org.apache.log4j.PatternLayout
log4j.appender.R.layout.ConversionPattern=%d - %5p (%C:%L) - %m%n
log4j.logger.org.apache.catalina.core.ContainerBase.[Catalina].[localhost][/cpe]=DEBUG,
R
then I have this in my web.xml file:
<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>config/cpe</param-name>
<param-value>/WEB-INF/classes/zzt/struts-config-cpe.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>2</param-value>
</init-param>
<init-param>
<param-name>application</param-name>
<param-value>zzt_general</param-value>
</init-param>
<load-on-startup>2</load-on-startup>
</servlet>
Bottom line is, I do not get the Struts internal messages, nor
actually any messages?
Thanks,
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]