• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

Increasing logging level of tomcat

 
Ranch Hand
Posts: 341
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
 
Ranch Hand
Posts: 3695
IntelliJ IDE Java Ubuntu
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
put a log4j configuration file in server/classes.
 
Ranch Hand
Posts: 160
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
    Number of slices to send:
    Optional 'thank-you' note:
  • 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 ?
 
reply
    Bookmark Topic Watch Topic
  • New Topic