You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@tomcat.apache.org by Tony Smith <qu...@yahoo.com> on 2006/05/18 02:26:50 UTC

display exception in log

Hi, I run tomcat 5.5 on my computer. If the server
throwed a exception, either because of server side
java code error or because of a jsp error, the
exception was print out in the tomcat log file. I
recently reinstalled tomcat, and found that the
exception is nolonger reported in the log. Why?

Thanks,

qq



__________________________________________________
Do You Yahoo!?
Tired of spam?  Yahoo! Mail has the best spam protection around 
http://mail.yahoo.com 

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@tomcat.apache.org
For additional commands, e-mail: users-help@tomcat.apache.org


Re: display exception in log

Posted by Corobitsyn Roman <kr...@dtnm.ru>.
Hello Tony,

In Context container you must point swallowOutput="true"

<Context ... swallowOutput="true" ... />

http://tomcat.apache.org/tomcat-5.5-doc/config/context.html
"If the value of this flag is true, the bytes output to System.out and System.err by the web application will be
redirected to the web application logger. If not specified, the
default value of the flag is false."


TS> Hi, I run tomcat 5.5 on my computer. If the server
TS> throwed a exception, either because of server side
TS> java code error or because of a jsp error, the
TS> exception was print out in the tomcat log file. I
TS> recently reinstalled tomcat, and found that the
TS> exception is nolonger reported in the log. Why?

TS> Thanks,

TS> qq



TS> __________________________________________________
TS> Do You Yahoo!?
TS> Tired of spam?  Yahoo! Mail has the best spam protection around 
TS> http://mail.yahoo.com 

TS> ---------------------------------------------------------------------
TS> To unsubscribe, e-mail: users-unsubscribe@tomcat.apache.org
TS> For additional commands, e-mail: users-help@tomcat.apache.org




---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@tomcat.apache.org
For additional commands, e-mail: users-help@tomcat.apache.org