• 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

Checking the Log Files when Runtime exception occurs

 
Ranch Hand
Posts: 212
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Dump Question

Assume if i am executing some function , and assume a RuntimeException occurs on to the server side .

Where or what log files should be checked ?

Are these log files are same what we produced using Log4J ?? OR will it be based on server specific ?

Please tell me .
 
Ranch Hand
Posts: 53
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hi Pavan,
I dont know how to work with Log4j but i do know one thing that when i encounter a runtime exception when executing applications in Tomcat, the details of the exception such as the stack trace are available in the logs directory of Apache. I believe this feature is application server specific and is different from the Log4j logging features.

Kindly let me know if i am mistaken in any way. Thanks.
 
Ranch Hand
Posts: 104
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Yes Ryan is correct.Logging done using Log4j will be known to you.The server specific logs will be added to tomcat's logs
 
PavanPL KalyanK
Ranch Hand
Posts: 212
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Thanks Ryan and Surya .

So if an RuntimeException occurs , the server specific log files would get filled ?? Am i right ??
 
Surya Kant
Ranch Hand
Posts: 104
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Yes.If you dont want your logs to fill you can delete them manually.
 
reply
    Bookmark Topic Watch Topic
  • New Topic