Enhydra 5.1 API

org.enhydra.xml.xmlc
Class EnhydraXMLCLogger

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

public class EnhydraXMLCLogger
extends java.lang.Object
implements XMLCLogger

XMLC logger interface to the enhydra logger.


Field Summary
static java.lang.String XMLC_DEBUG_LOG_LEVEL
          XMLC debug log level.
static java.lang.String XMLC_ERROR_LOG_LEVEL
          XMLC error log level.
static java.lang.String XMLC_LOG_LEVEL
          XMLC log level.
 
Constructor Summary
EnhydraXMLCLogger(org.apache.log4j.Logger log)
          Constructor
 
Method Summary
 boolean debugEnabled()
          Determine if debug logging is enabled.
 boolean errorEnabled()
          Determine if error logging is enabled.
 java.io.PrintWriter getDebugWriter()
          Get the debug logging writer.
 java.io.PrintWriter getErrorWriter()
          Get the error logging writer.
 java.io.PrintWriter getInfoWriter()
          Get the info logging writer.
 org.apache.log4j.Logger getLogger()
          Get the log channel, or null if there is none.
 boolean infoEnabled()
          Determine if info logging is enabled.
 void logDebug(java.lang.String msg)
          Login an debug message.
 void logDebug(java.lang.String msg, java.lang.Throwable except)
          Login an debug message with exception.
 void logError(java.lang.String msg)
          Login an error message.
 void logError(java.lang.String msg, java.lang.Throwable except)
          Login an error message with exception.
 void logInfo(java.lang.String msg)
          Login an info message.
 void logInfo(java.lang.String msg, java.lang.Throwable except)
          Login an info message with exception.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

XMLC_LOG_LEVEL

public static final java.lang.String XMLC_LOG_LEVEL
XMLC log level. May be used by various factory implementations.

See Also:
Constant Field Values

XMLC_DEBUG_LOG_LEVEL

public static final java.lang.String XMLC_DEBUG_LOG_LEVEL
XMLC debug log level. May be used by various factory implementations.

See Also:
Constant Field Values

XMLC_ERROR_LOG_LEVEL

public static final java.lang.String XMLC_ERROR_LOG_LEVEL
XMLC error log level. May be used by various factory implementations.

See Also:
Constant Field Values
Constructor Detail

EnhydraXMLCLogger

public EnhydraXMLCLogger(org.apache.log4j.Logger log)
Constructor

Method Detail

getLogger

public org.apache.log4j.Logger getLogger()
Get the log channel, or null if there is none.


infoEnabled

public boolean infoEnabled()
Determine if info logging is enabled.

Specified by:
infoEnabled in interface XMLCLogger

getInfoWriter

public java.io.PrintWriter getInfoWriter()
Get the info logging writer.

Specified by:
getInfoWriter in interface XMLCLogger

logInfo

public void logInfo(java.lang.String msg)
Login an info message.

Specified by:
logInfo in interface XMLCLogger

logInfo

public void logInfo(java.lang.String msg,
                    java.lang.Throwable except)
Login 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 java.io.PrintWriter getErrorWriter()
Get the error logging writer.

Specified by:
getErrorWriter in interface XMLCLogger

logError

public void logError(java.lang.String msg)
Login an error message.

Specified by:
logError in interface XMLCLogger

logError

public void logError(java.lang.String msg,
                     java.lang.Throwable except)
Login 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 java.io.PrintWriter getDebugWriter()
Get the debug logging writer.

Specified by:
getDebugWriter in interface XMLCLogger

logDebug

public void logDebug(java.lang.String msg)
Login an debug message.

Specified by:
logDebug in interface XMLCLogger

logDebug

public void logDebug(java.lang.String msg,
                     java.lang.Throwable except)
Login an debug message with exception.

Specified by:
logDebug in interface XMLCLogger

Enhydra 5.1 API