You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@struts.apache.org by Robert Leland <Ro...@freetocreate.org> on 2000/09/26 18:48:44 UTC

servlet.log(debug,message)

Would you consider adding an debug logging API to
org.apache.struts.action.ActionServlet.

    /**
     * Writes the message to the servlet log file when the
     * msgDebug level is greater than or equal to the debug property
     *
     * @param message The message to send to log file
     *
     * @param msgDebug The debug level associated with the message
     */

 public void log(String message, int msgDebug) {
   if (debug >= msgDebug)
      log(message);
}

I know it is inefficent, though convient.

-Rob