Win a copy of Mesos in Action this week in the Cloud/Virtualizaton forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Checking the Log Files when Runtime exception occurs

 
PavanPL KalyanK
Ranch Hand
Posts: 212
  • Mark post as helpful
  • send pies
  • 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 .
 
ryan sukale
Ranch Hand
Posts: 53
  • Mark post as helpful
  • send pies
  • 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.
 
Surya Kant
Ranch Hand
Posts: 104
  • Mark post as helpful
  • send pies
  • 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
  • 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
  • Quote
  • Report post to moderator
Yes.If you dont want your logs to fill you can delete them manually.
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic