Link to home
Start Free TrialLog in
Avatar of fyness
fyness

asked on

Tomcat - Printing our Exceptions in catalina.out


Hey,

Just moved from Tomcat 5.0.19 to 5.0.27 and for some reason when a exception is thrown it doesnt get printed in catalina.out as it does in the 5.0.19 version.

Any one have any idea why this is? Is there different config needed for Tomcat 5.0.27??


Thanks,
Sue
ASKER CERTIFIED SOLUTION
Avatar of tanghm
tanghm

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Avatar of fyness
fyness

ASKER

Thanks very much for your reply. How do I change the debug level, I've never do it and  what should the acquired level be?


Thanks again,
Suzy
Before that, why would you want to see exception thrown at Catalina level ? Exception thrown at this level would most probably be severe exception at the Tomcat engine itself. If you want to see exception throws by your application, its in localhost_log.date.txt.

To enable catalina.out logging:
Open up Tomcat Server Administration (http://yourtomcatserver:port/admin).
Enter your password (username is admin, password is stored in conf\tomcat-users.xml)
Click on Tomcat Server -> Service(Catalina)
Under Engine properties, change Debug Level from 0 to any level you preferred. Higher number generates more detail.
Save and Commit.
Restart the Tomcat service.
You should now see catalina.out log in logs folder

For your reference:
http://jakarta.apache.org/tomcat/tomcat-5.0-doc/config/logger.html