|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object com.ibm.di.api.local.impl.LogListenerAdapter
public class LogListenerAdapter
Adapt the local API's log listener interface to the log interface of the Server.
Field Summary |
---|
Fields inherited from interface com.ibm.di.log.LogInterface |
---|
CONFIG_INSTANCE, NAME, TIME, TYPE |
Constructor Summary | |
---|---|
LogListenerAdapter(LogListener logListener,
Log log,
Format logMsgFormat)
Constructor |
Method Summary | |
---|---|
void |
addAppender(LogConfigItem config,
Map params)
Add an Appender to the Logger using the given config. |
void |
close()
Free up all resources this logger uses. |
void |
debug(String str)
Log a message with level debug. |
void |
error(String str)
Log a message with level error. |
void |
error(String str,
Throwable error)
Log a message with level error, and an additional Throwable. |
void |
fatal(String str)
Log a message with level fatal. |
void |
fatal(String str,
Throwable error)
Log a message with level fatal, and an additional Throwable. |
void |
info(String str)
Log a message with level info. |
boolean |
isDebugEnabled()
Check if a debug message would be logged. |
void |
log(String level,
String str)
Log a message with the specified level. |
void |
setCategory(String category)
Set the category for this Logger. |
void |
warn(String str)
Log a message with level warning. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public LogListenerAdapter(LogListener logListener, Log log, Format logMsgFormat)
logListener
- Log listener from the remote Server API layer.log
- The Log, which contains this object. Necessary so that we can
unregister ourselves in case of error.Method Detail |
---|
public void addAppender(LogConfigItem config, Map params) throws Exception
addAppender
in interface LogInterface
config
- The LogConfigItem.params
- Extra information that may be useful/
Exception
public void close()
close
in interface LogInterface
public void debug(String str)
debug
in interface LogInterface
str
- The string to be loggedpublic void error(String str)
error
in interface LogInterface
str
- The string to be loggedpublic void error(String str, Throwable error)
error
in interface LogInterface
str
- The string to be loggederror
- The Throwable to be loggedpublic void fatal(String str)
fatal
in interface LogInterface
str
- The string to be loggedpublic void fatal(String str, Throwable error)
fatal
in interface LogInterface
str
- The string to be loggederror
- The Throwable to be loggedpublic void info(String str)
info
in interface LogInterface
str
- The string to be loggedpublic boolean isDebugEnabled()
isDebugEnabled
in interface LogInterface
public void log(String level, String str)
log
in interface LogInterface
level
- The level to use when logging.str
- The string to be loggedpublic void setCategory(String category) throws Exception
setCategory
in interface LogInterface
category
- The category to use.
Exception
public void warn(String str)
warn
in interface LogInterface
str
- The string to be logged
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |