org.enhydra.xml.xmlc.servlet
Class ServletXMLCLogger

java.lang.Object
  |
  +--org.enhydra.xml.xmlc.servlet.ServletXMLCLogger
All Implemented Interfaces:
XMLCLogger

class ServletXMLCLogger
extends Object
implements XMLCLogger

XMLC logger interface to the Servlet logging API.


Constructor Summary
ServletXMLCLogger(javax.servlet.ServletContext servletContext, boolean enableInfoLogging, boolean enableDebugLogging)
          Constructor.
 
Method Summary
 boolean debugEnabled()
          Determine if debug logging is enabled.
 boolean errorEnabled()
          Determine if error logging is enabled.
 PrintWriter getDebugWriter()
          Get the debug logging writer.
 PrintWriter getErrorWriter()
          Get the error logging writer.
 PrintWriter getInfoWriter()
          Get the info logging writer.
 boolean infoEnabled()
          Determine if info logging is enabled.
 void logDebug(String msg)
          Log a debug message.
 void logDebug(String msg, Throwable except)
          Log a debug message with exception.
 void logError(String msg)
          Log an error message.
 void logError(String msg, Throwable except)
          Log an error message with exception.
 void logInfo(String msg)
          Log an info message.
 void logInfo(String msg, Throwable except)
          Log an info message with exception.
 
Methods inherited from class java.lang.Object
, clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ServletXMLCLogger

public ServletXMLCLogger(javax.servlet.ServletContext servletContext,
                         boolean enableInfoLogging,
                         boolean enableDebugLogging)
Constructor.
Method Detail

infoEnabled

public boolean infoEnabled()
Determine if info logging is enabled.
Specified by:
infoEnabled in interface XMLCLogger

getInfoWriter

public PrintWriter getInfoWriter()
Get the info logging writer.

logInfo

public void logInfo(String msg)
Log an info message.
Specified by:
logInfo in interface XMLCLogger

logInfo

public void logInfo(String msg,
                    Throwable except)
Log an info message with exception.
Specified by:
logInfo in interface XMLCLogger

errorEnabled

public boolean errorEnabled()
Determine if error logging is enabled.
Specified by:
errorEnabled in interface XMLCLogger

getErrorWriter

public PrintWriter getErrorWriter()
Get the error logging writer.

logError

public void logError(String msg)
Log an error message.
Specified by:
logError in interface XMLCLogger

logError

public void logError(String msg,
                     Throwable except)
Log an error message with exception.
Specified by:
logError in interface XMLCLogger

debugEnabled

public boolean debugEnabled()
Determine if debug logging is enabled.
Specified by:
debugEnabled in interface XMLCLogger

getDebugWriter

public PrintWriter getDebugWriter()
Get the debug logging writer.

logDebug

public void logDebug(String msg)
Log a debug message.
Specified by:
logDebug in interface XMLCLogger

logDebug

public void logDebug(String msg,
                     Throwable except)
Log a debug message with exception.
Specified by:
logDebug in interface XMLCLogger


Copyright © 1999-2002 enhydra.org (Mark Diekhans, David Li, Richard Kunze). All Rights reserved.