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_LOG_LEVEL
          XMLC log level.
 
Constructor Summary
EnhydraXMLCLogger(LogChannel logChannel)
          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.
 LogChannel getLogChannel()
          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
Constructor Detail

EnhydraXMLCLogger

public EnhydraXMLCLogger(LogChannel logChannel)
Constructor

Parameters:
logChannel - The log channel to use to log events and errors. If null, no logging is done. Level XMLC is used to log reloading and recompilation. Level ERROR is used for errors.
Method Detail

getLogChannel

public LogChannel getLogChannel()
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.


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.


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.


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


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