Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations gkittelson on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

How to log to servlet.log 1

Status
Not open for further replies.

MarkShark

Programmer
Aug 22, 2001
36
US
Is this the correct format to log to the servlet log?

log(e.toString());
 
Yes, there is also an overloaded version of log() which takes a String and a Throwable object. This is much easier to use when all you really want to do is log an exception. Wushutwist
 
What is the overloaded version? and what does it do?
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top