With Struts 1.1, you configure your logger its own way. Neither the entry in web.xml nor the entry in struts-config.xml is used.
Since you're using JDK 1.4, it's probably easiest to forget about SimpleLog and just let Commons Logging pick up the JDK 1.4 logger. Just make sure that logging.properties has what you need, and it should "just work" (TM). That said, I had a heck of a time getting logging to kick in the first time I tried to use it on Windows. What finally seemed to get it to work was a reboot (surprise!), but since then it's worked flawlessly. -- Martin Cooper On Wed, 20 Nov 2002, Richard Mixon wrote: > Forgot to add - I'm using the SimpleLog implementation for now, and I am > running J2SDK 1.4.1. > > -----Original Message----- > From: Richard Mixon [mailto:[EMAIL PROTECTED]] > Sent: Wednesday, November 20, 2002 12:54 PM > To: [EMAIL PROTECTED] > Subject: Enabling debug levels - which way? > > > In trying to track down why my action is not being called in a previous post > (Enabling server-side (only) validation with Struts 1.1), I am having a > heck of a time getting the debug parameters to change. > > I've tried changing the value in the web.xml file: > > <!-- Standard Action Servlet Configuration (with debugging) --> > <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>6</param-value> > </init-param> > <init-param> > <param-name>detail</param-name> > <param-value>6</param-value> > </init-param> > <load-on-startup>1</load-on-startup> > </servlet> > > > I've tried in the struts-config.xml file (it seems that this is now the > preferred method?): > > <controller debug="6"> > <!-- The "input" parameter on "action" elements is the name of a > local or global "forward" rather than a subapp-relative path --> > > <set-property property="inputForward" value="true"/> > </controller> > > In each case, whether I set it to 1,2,3,4,5 or 6, My application issues the > following displays with either a level 5 or 6 set: > ContactForm.validate: Logging level=3 > ContactForm.validate: Error enabled > ContactForm.validate: Fatal enabled > ContactForm.validate: Info enabled > ContactForm.validate: Warn enabled > ContactForm.validate: Info mode is on > [INFO] class - - Info mode is on > I print the log level and then check for Debug, Error, Fatal, Info, Warn and > Trace respectively. As you can see I get no display that Debug and Trace are > enabled. > > Any suggestions are appreciated. > > Richard Mixon > Promoting Value in Information Technology and Software > cell: (480) 577-6834 home: (480) 614-3442 > email: [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]> > > -- To unsubscribe, e-mail: <mailto:[EMAIL PROTECTED]> For additional commands, e-mail: <mailto:[EMAIL PROTECTED]>

