/**
  * Writes the specified message and exception to a servlet log file.
  *
  * @param message Message to be written
  * @param throwable Exception to be reported
  */
 public void log(String message, Throwable throwable) {
   if (System.getSecurityManager() != null) {
     PrivilegedLogThrowable dp = new PrivilegedLogThrowable(message, throwable);
     AccessController.doPrivileged(dp);
   } else {
     internalLog(message, throwable);
   }
 }
 /**
  * Writes the specified exception and message to a servlet log file.
  *
  * @param exception Exception to be reported
  * @param message Message to be written
  * @deprecated As of Java Servlet API 2.1, use <code>log(String, Throwable)</code> instead
  */
 public void log(Exception exception, String message) {
   if (System.getSecurityManager() != null) {
     PrivilegedLogException dp = new PrivilegedLogException(exception, message);
     AccessController.doPrivileged(dp);
   } else {
     internalLog(exception, message);
   }
 }