David - thanks, but the logging level still stays at 3, even with the
WEB-INF/simplelog.properties setup as you said. I tried it with a name of
simplelog.properties and SimpleLog.properties in case Windows was screwing
things up.

That said, what are the settings in web.xml and struts-config.xml for then?

Any other ideas?

Thanks - Richard

-----Original Message-----
From: Karr, David [mailto:[EMAIL PROTECTED]]
Sent: Wednesday, November 20, 2002 1:28 PM
To: Struts Users Mailing List
Subject: RE: Enabling debug levels - which way?


If you want more debug information from Struts, and you're using the default
SimpleLog, then put a file named "simplelog.properties" in your
WEB-INF/classes with the following contents:

org.apache.commons.logging.simplelog.defaultlog = debug

> -----Original Message-----
> From: Richard Mixon [mailto:[EMAIL PROTECTED]]
>
> 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.

--
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]>

Reply via email to