|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.ibm.di.log.TDIJLog
public class TDIJLog
Implements LogInterface for com.ibm.log.Logger
Field Summary |
---|
Fields inherited from interface com.ibm.di.log.LogInterface |
---|
CONFIG_INSTANCE, NAME, TIME, TYPE |
Constructor Summary | |
---|---|
TDIJLog()
Public constructor |
Method Summary | |
---|---|
void |
addAppender(LogConfigItem config,
Map map)
This sample code only understand the FileHandler. |
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. |
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 TDIJLog()
Method Detail |
---|
public void setCategory(String category)
setCategory
in interface LogInterface
category
- The categorypublic void addAppender(LogConfigItem config, Map map) throws Exception
addAppender
in interface LogInterface
config
- The LogConfigItem.map
- Extra information that may be useful/
Exception
public void debug(String str)
debug
in interface LogInterface
str
- The string to be loggedpublic void info(String str)
info
in interface LogInterface
str
- The string to be loggedpublic void warn(String str)
warn
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 log(String level, String str)
log
in interface LogInterface
level
- The level to use when logging.str
- The string to be loggedpublic boolean isDebugEnabled()
isDebugEnabled
in interface LogInterface
public void close()
close
in interface LogInterface
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |