|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--org.enhydra.xml.xmlc.EnhydraXMLCLogger
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 |
public static final java.lang.String XMLC_LOG_LEVEL
public static final java.lang.String XMLC_DEBUG_LOG_LEVEL
Constructor Detail |
public EnhydraXMLCLogger(LogChannel logChannel)
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 |
public LogChannel getLogChannel()
public boolean infoEnabled()
infoEnabled
in interface XMLCLogger
public java.io.PrintWriter getInfoWriter()
public void logInfo(java.lang.String msg)
logInfo
in interface XMLCLogger
public void logInfo(java.lang.String msg, java.lang.Throwable except)
logInfo
in interface XMLCLogger
public boolean errorEnabled()
errorEnabled
in interface XMLCLogger
public java.io.PrintWriter getErrorWriter()
public void logError(java.lang.String msg)
logError
in interface XMLCLogger
public void logError(java.lang.String msg, java.lang.Throwable except)
logError
in interface XMLCLogger
public boolean debugEnabled()
debugEnabled
in interface XMLCLogger
public java.io.PrintWriter getDebugWriter()
public void logDebug(java.lang.String msg)
logDebug
in interface XMLCLogger
public void logDebug(java.lang.String msg, java.lang.Throwable except)
logDebug
in interface XMLCLogger
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |