You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@struts.apache.org by Darren Karstens <da...@gmail.com> on 2010/10/06 15:37:08 UTC

Logging not working

Hi,
I can't seem to get any errors to appear when struts goes wrong
(action trying to set/get an attribute that doesn't exist etc). I have
the commons-logging-1.1.jar file in my <project-root>/WEB-INF/lib
folder and have the <constant name="struts.devMode" value="true" />
line in my struts.xml file. Despite this I have never seen an error in
my log files. Is there something im missing here? Would the errors
appear in the same log as servlet exceptions
(<tomcat>/logs/localhost.xxxx-xx-xx.log)?
Thanks in advanced,
Darren

---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@struts.apache.org
For additional commands, e-mail: user-help@struts.apache.org


Re: Logging not working

Posted by Mead Lai <la...@gmail.com>.
If you want to record the ServerError, like ServletException, you can config
the Tomcat Server logging, ref the document from Apache.org


Regards,
Mead


On Wed, Oct 6, 2010 at 10:44 PM, Dave Newton <da...@gmail.com> wrote:

> What do you have your log levels configured as? For struts, xwork, and
> OGNL?
>
> Dave
>
> On Wed, Oct 6, 2010 at 10:39 AM, Darren Karstens
> <da...@gmail.com>wrote:
>
> > The <s:debug/> tag worked, thanks that will come in handy. I would
> > still like to get errors reporting in the logs, any got any ideas?
> >
> > On Wed, Oct 6, 2010 at 2:39 PM, Mead Lai <la...@gmail.com> wrote:
> > > try the tag
> > > <s:debug/>
> > > on the page
> > >
> > >
> > > Regards,
> > > Mead
> > >
> > >
> > > On Wed, Oct 6, 2010 at 9:37 PM, Darren Karstens <
> > darrenkarstens@gmail.com>wrote:
> > >
> > >> Hi,
> > >> I can't seem to get any errors to appear when struts goes wrong
> > >> (action trying to set/get an attribute that doesn't exist etc). I have
> > >> the commons-logging-1.1.jar file in my <project-root>/WEB-INF/lib
> > >> folder and have the <constant name="struts.devMode" value="true" />
> > >> line in my struts.xml file. Despite this I have never seen an error in
> > >> my log files. Is there something im missing here? Would the errors
> > >> appear in the same log as servlet exceptions
> > >> (<tomcat>/logs/localhost.xxxx-xx-xx.log)?
> > >> Thanks in advanced,
> > >> Darren
> > >>
> > >> ---------------------------------------------------------------------
> > >> To unsubscribe, e-mail: user-unsubscribe@struts.apache.org
> > >> For additional commands, e-mail: user-help@struts.apache.org
> > >>
> > >>
> > >
> >
> > ---------------------------------------------------------------------
> > To unsubscribe, e-mail: user-unsubscribe@struts.apache.org
> > For additional commands, e-mail: user-help@struts.apache.org
> >
> >
>

Re: Logging not working

Posted by Dave Newton <da...@gmail.com>.
What do you have your log levels configured as? For struts, xwork, and OGNL?

Dave

On Wed, Oct 6, 2010 at 10:39 AM, Darren Karstens
<da...@gmail.com>wrote:

> The <s:debug/> tag worked, thanks that will come in handy. I would
> still like to get errors reporting in the logs, any got any ideas?
>
> On Wed, Oct 6, 2010 at 2:39 PM, Mead Lai <la...@gmail.com> wrote:
> > try the tag
> > <s:debug/>
> > on the page
> >
> >
> > Regards,
> > Mead
> >
> >
> > On Wed, Oct 6, 2010 at 9:37 PM, Darren Karstens <
> darrenkarstens@gmail.com>wrote:
> >
> >> Hi,
> >> I can't seem to get any errors to appear when struts goes wrong
> >> (action trying to set/get an attribute that doesn't exist etc). I have
> >> the commons-logging-1.1.jar file in my <project-root>/WEB-INF/lib
> >> folder and have the <constant name="struts.devMode" value="true" />
> >> line in my struts.xml file. Despite this I have never seen an error in
> >> my log files. Is there something im missing here? Would the errors
> >> appear in the same log as servlet exceptions
> >> (<tomcat>/logs/localhost.xxxx-xx-xx.log)?
> >> Thanks in advanced,
> >> Darren
> >>
> >> ---------------------------------------------------------------------
> >> To unsubscribe, e-mail: user-unsubscribe@struts.apache.org
> >> For additional commands, e-mail: user-help@struts.apache.org
> >>
> >>
> >
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: user-unsubscribe@struts.apache.org
> For additional commands, e-mail: user-help@struts.apache.org
>
>

Re: Logging not working

Posted by Darren Karstens <da...@gmail.com>.
The <s:debug/> tag worked, thanks that will come in handy. I would
still like to get errors reporting in the logs, any got any ideas?

On Wed, Oct 6, 2010 at 2:39 PM, Mead Lai <la...@gmail.com> wrote:
> try the tag
> <s:debug/>
> on the page
>
>
> Regards,
> Mead
>
>
> On Wed, Oct 6, 2010 at 9:37 PM, Darren Karstens <da...@gmail.com>wrote:
>
>> Hi,
>> I can't seem to get any errors to appear when struts goes wrong
>> (action trying to set/get an attribute that doesn't exist etc). I have
>> the commons-logging-1.1.jar file in my <project-root>/WEB-INF/lib
>> folder and have the <constant name="struts.devMode" value="true" />
>> line in my struts.xml file. Despite this I have never seen an error in
>> my log files. Is there something im missing here? Would the errors
>> appear in the same log as servlet exceptions
>> (<tomcat>/logs/localhost.xxxx-xx-xx.log)?
>> Thanks in advanced,
>> Darren
>>
>> ---------------------------------------------------------------------
>> To unsubscribe, e-mail: user-unsubscribe@struts.apache.org
>> For additional commands, e-mail: user-help@struts.apache.org
>>
>>
>

---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@struts.apache.org
For additional commands, e-mail: user-help@struts.apache.org


Re: Logging not working

Posted by Mead Lai <la...@gmail.com>.
try the tag
<s:debug/>
on the page


Regards,
Mead


On Wed, Oct 6, 2010 at 9:37 PM, Darren Karstens <da...@gmail.com>wrote:

> Hi,
> I can't seem to get any errors to appear when struts goes wrong
> (action trying to set/get an attribute that doesn't exist etc). I have
> the commons-logging-1.1.jar file in my <project-root>/WEB-INF/lib
> folder and have the <constant name="struts.devMode" value="true" />
> line in my struts.xml file. Despite this I have never seen an error in
> my log files. Is there something im missing here? Would the errors
> appear in the same log as servlet exceptions
> (<tomcat>/logs/localhost.xxxx-xx-xx.log)?
> Thanks in advanced,
> Darren
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: user-unsubscribe@struts.apache.org
> For additional commands, e-mail: user-help@struts.apache.org
>
>