• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Increasing logging level of tomcat

 
Danish Shaukat
Ranch Hand
Posts: 341
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 3695
IntelliJ IDE Java Ubuntu
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
put a log4j configuration file in server/classes.
 
Jasmine kaur
Ranch Hand
Posts: 160
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
 
Danish Shaukat
Ranch Hand
Posts: 341
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 341
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 3695
IntelliJ IDE Java Ubuntu
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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 ?
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic