If you want to dump the stack to the log for debugging, as opposed to
when you've caught a real exception, do this:

try {
    throw new Exception();
} catch (Exception exc) {
   log("Here we are", exc);
}


Steve Dietrich wrote:
>
> PG&E Energy Trading and any other company referenced herein which uses the PG&E name 
>or logo are not the same company as Pacific Gas and Electric Company, the California 
>utility.  These companies are not regulated by the California Public Utilities 
>Commission, and customers do not have to buy products from these companies in order 
>to continue to receive quality regulated services from the utility.
>
> Does anyone know a way to send a stacktrace to jserv.log by way of the
> getServletContex.log() method?  Or an alternate method?
>
>    thanks in advance...
>
>    Steve Dietrich
>
> ___________________________________________________________________________
> To unsubscribe, send email to [EMAIL PROTECTED] and include in the body
> of the message "signoff SERVLET-INTEREST".
>
> Archives: http://archives.java.sun.com/archives/servlet-interest.html
> Resources: http://java.sun.com/products/servlet/external-resources.html
> LISTSERV Help: http://www.lsoft.com/manuals/user/user.html

___________________________________________________________________________
To unsubscribe, send email to [EMAIL PROTECTED] and include in the body
of the message "signoff SERVLET-INTEREST".

Archives: http://archives.java.sun.com/archives/servlet-interest.html
Resources: http://java.sun.com/products/servlet/external-resources.html
LISTSERV Help: http://www.lsoft.com/manuals/user/user.html

Reply via email to