org.enhydra.xml.xmlc
Class Log4jXMLCLogger

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

public class Log4jXMLCLogger
extends Object
implements XMLCLogger

XMLC logger interface to the enhydra logger.


Constructor Summary
Log4jXMLCLogger(org.apache.log4j.Logger logImpl)
          Create a logger that delegates to specified category.
 
Method Summary
 boolean debugEnabled()
          Determine if messages of priority "debug" will be logged.
 boolean errorEnabled()
          Determine if messages of priority "error" will be logged.
 XMLCLogger getChildLogger(String name)
          Create a new child logger.
 boolean infoEnabled()
          Determine if messages of priority "info" will be logged.
 void logDebug(String message)
          Log a debug message.
 void logDebug(String message, Throwable throwable)
          Log a debug message.
 void logError(String message)
          Log a error message.
 void logError(String message, Throwable throwable)
          Log a error message.
 void logInfo(String message)
          Log a info message.
 void logInfo(String message, Throwable throwable)
          Log a info message.
 
Methods inherited from class java.lang.Object
, clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

Log4jXMLCLogger

public Log4jXMLCLogger(org.apache.log4j.Logger logImpl)
Create a logger that delegates to specified category.
Parameters:
logImpl - the category to delegate to
Method Detail

infoEnabled

public final boolean infoEnabled()
Determine if messages of priority "info" will be logged.
Specified by:
infoEnabled in interface XMLCLogger
Returns:
true if "info" messages will be logged

logInfo

public final void logInfo(String message)
Log a info message.
Specified by:
logInfo in interface XMLCLogger
Parameters:
message - the message

logInfo

public final void logInfo(String message,
                          Throwable throwable)
Log a info message.
Specified by:
logInfo in interface XMLCLogger
Parameters:
message - the message
throwable - the throwable

errorEnabled

public final boolean errorEnabled()
Determine if messages of priority "error" will be logged.
Specified by:
errorEnabled in interface XMLCLogger
Returns:
true if "error" messages will be logged

logError

public final void logError(String message)
Log a error message.
Specified by:
logError in interface XMLCLogger
Parameters:
message - the message

logError

public final void logError(String message,
                           Throwable throwable)
Log a error message.
Specified by:
logError in interface XMLCLogger
Parameters:
message - the message
throwable - the throwable

debugEnabled

public boolean debugEnabled()
Determine if messages of priority "debug" will be logged.
Specified by:
debugEnabled in interface XMLCLogger
Returns:
true if "debug" messages will be logged

logDebug

public final void logDebug(String message)
Log a debug message.
Specified by:
logDebug in interface XMLCLogger
Parameters:
message - the message

logDebug

public void logDebug(String message,
                     Throwable throwable)
Log a debug message.
Specified by:
logDebug in interface XMLCLogger
Parameters:
message - the message
throwable - the throwable

getChildLogger

public final XMLCLogger getChildLogger(String name)
Create a new child logger. The name of the child logger is [current-loggers-name].[passed-in-name] Throws IllegalArgumentException if name has an empty element name
Parameters:
name - the subname of this logger
Returns:
the new logger


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