permaculture playing cards*
The moose likes Tomcat and the fly likes Increasing logging level of tomcat Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of OCA/OCP Java SE 7 Programmer I & II Study Guide this week in the OCPJP forum!
JavaRanch » Java Forums » Products » Tomcat
Bookmark "Increasing logging level of tomcat" Watch "Increasing logging level of tomcat" New topic
Author

Increasing logging level of tomcat

Danish Shaukat
Ranch Hand

Joined: Nov 16, 1999
Posts: 340
Hi !

I want to increase the logging level of tomcat 4.1 to get more detailed error messages etc. Any suggestions where to get started...

Danish
Mike Curwen
Ranch Hand

Joined: Feb 20, 2001
Posts: 3695

put a log4j configuration file in server/classes.
Jasmine kaur
Ranch Hand

Joined: Nov 25, 2003
Posts: 160
Hi,
please read the tomcat documentation where they have mentioned about log and to get better error message increas ethe value of debug in server.xml file which is by default is 0 ,so please read the tomcat documentation.
Thanks


jasmine kaur
Danish Shaukat
Ranch Hand

Joined: Nov 16, 1999
Posts: 340
Originally posted by Jasmine kaur:
Hi,
please read the tomcat documentation where they have mentioned about log and to get better error message increas ethe value of debug in server.xml file which is by default is 0 ,so please read the tomcat documentation.
Thanks


I guess I'd have to increase the verbosity level of the logger. But I cannot access server.xml file. So this is not an option unless I get help from tech support.
Danish Shaukat
Ranch Hand

Joined: Nov 16, 1999
Posts: 340
Originally posted by Mike Curwen:
put a log4j configuration file in server/classes.

If I am not wrong, log4J will help me detect application failures. I don't have problems with this.
Tomcat stops working after every few days and I want to know the reason.
I can't modify server.xml, is there anything else that I can do ?
Mike Curwen
Ranch Hand

Joined: Feb 20, 2001
Posts: 3695

Danish.

Tomcat is also an application. It happens to use commons-logging. Commons-logging can be controlled through a log4j properties file.

You weren't specific about what type of logging you were interested in increasing the verbosity of, so I went for "tomcat internals".


As for "I don't have problems with this."... how do you know it's not your application that's causing the problem ?
 
jQuery in Action, 2nd edition
 
subject: Increasing logging level of tomcat