|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.ibm.di.server.Log
public class Log
Nested Class Summary | |
---|---|
class |
Log.InternalLogger
|
Field Summary | |
---|---|
boolean |
debug
|
Constructor Summary | |
---|---|
Log(String category)
The Log object is used to log messages to log files |
|
Log(String category,
Log.InternalLogger logger)
|
|
Log(String category,
org.apache.log4j.Logger logger)
|
|
Log(String category,
String componentname)
|
Method Summary | |
---|---|
void |
addLogger(org.apache.log4j.Logger logger)
|
void |
close()
Close the output logger |
void |
debug(String res)
|
void |
debug(String res,
Object param)
|
void |
debug(String res,
Object[] params)
|
void |
debug(String res,
Object param1,
Object param2)
|
void |
dump(Object o)
This methods dumps an Object to the log file. |
void |
dumpEntry(Entry e)
Dumps a formatted message to the logfile from the contents of an Entry |
void |
error(String res)
|
void |
error(String res,
Object[] params)
|
void |
error(String res,
Object[] params,
Throwable error)
|
void |
error(String res,
Object param,
Throwable error)
|
void |
error(String res,
String param)
|
void |
error(String res,
String param1,
String param2)
|
void |
error(String res,
Throwable error)
|
void |
exception(String res)
|
void |
exception(String res,
Object param)
|
void |
exception(String res,
Object[] params)
|
void |
exception(String res,
Object param1,
Object param2)
|
void |
fatal(String res)
|
void |
fatal(String res,
Object param)
|
void |
fatal(String res,
Object[] params)
|
void |
fatal(String res,
Object param,
Throwable err)
|
void |
fatal(String res,
Throwable err)
|
void |
fine(String res)
|
void |
fine(String res,
Object param)
|
void |
fine(String res,
Object[] params)
|
void |
fine(String res,
Object param1,
Object param2)
|
boolean |
getDebug()
Return the value of the debug parameter |
org.apache.log4j.Logger |
getLogger()
|
Vector |
getLoggers()
|
String |
getPrefix()
Returns the prefix to be prepended to all messages |
String |
getString(String resource)
Return the NLS string given the resource |
String |
getString(String resource,
Object param)
Return the NLS string given the resource and a parameter |
String |
getString(String resource,
Object[] params)
Return the NLS string given the resource and an array of parameters |
String |
getString(String resource,
Object param1,
Object param2)
Return the NLS string given the resource and two parameters |
void |
info(String res)
|
void |
info(String res,
Object param)
|
void |
info(String res,
Object[] params)
|
void |
info(String res,
Object param1,
Object param2)
|
void |
log(String level,
String msg)
|
void |
logdebug(String msg)
|
void |
logerror(String msg)
|
void |
logerror(String msg,
Throwable error)
|
void |
logfatal(String msg)
|
void |
logfine(String msg)
Logs a message to the output stream. |
void |
loginfo(String msg)
|
void |
logwarn(String msg)
|
void |
setDebug(boolean debug)
Sets debug parameter |
void |
setLogger(org.apache.log4j.Logger logger)
|
void |
setPrefix(String prefix)
Sets a prefix to be prepended to all messages |
void |
warn(String res)
|
void |
warn(String res,
Object param)
|
void |
warn(String res,
Object[] params)
|
void |
warn(String res,
Object param1,
Object param2)
|
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
public boolean debug
Constructor Detail |
---|
public Log(String category)
public Log(String category, String componentname)
public Log(String category, org.apache.log4j.Logger logger)
public Log(String category, Log.InternalLogger logger)
Method Detail |
---|
public org.apache.log4j.Logger getLogger()
public Vector getLoggers()
public void setLogger(org.apache.log4j.Logger logger)
public void addLogger(org.apache.log4j.Logger logger)
public void setDebug(boolean debug)
debug
- true if debug level should be output as infopublic boolean getDebug()
public void setPrefix(String prefix)
prefix
- public String getPrefix()
public String getString(String resource)
public String getString(String resource, Object param)
public String getString(String resource, Object param1, Object param2)
public String getString(String resource, Object[] params)
public void close()
public void logfine(String msg)
msg
- The message to log.public void logdebug(String msg)
public void loginfo(String msg)
public void logwarn(String msg)
public void logerror(String msg)
public void logerror(String msg, Throwable error)
public void logfatal(String msg)
public void fine(String res)
public void fine(String res, Object param)
public void fine(String res, Object param1, Object param2)
public void fine(String res, Object[] params)
public void debug(String res)
public void debug(String res, Object param)
public void debug(String res, Object param1, Object param2)
public void debug(String res, Object[] params)
public void info(String res)
public void info(String res, Object param)
public void info(String res, Object param1, Object param2)
public void info(String res, Object[] params)
public void warn(String res)
public void warn(String res, Object param)
public void warn(String res, Object param1, Object param2)
public void warn(String res, Object[] params)
public void error(String res)
public void error(String res, Throwable error)
public void error(String res, String param)
public void error(String res, Object param, Throwable error)
public void error(String res, String param1, String param2)
public void error(String res, Object[] params)
public void error(String res, Object[] params, Throwable error)
public void fatal(String res)
public void fatal(String res, Throwable err)
public void fatal(String res, Object param)
public void fatal(String res, Object param, Throwable err)
public void fatal(String res, Object[] params)
public void log(String level, String msg)
public void exception(String res) throws Exception
Exception
public void exception(String res, Object param) throws Exception
Exception
public void exception(String res, Object param1, Object param2) throws Exception
Exception
public void exception(String res, Object[] params) throws Exception
Exception
public void dumpEntry(Entry e)
e
- The entry to dumpdump(java.lang.Object)
public void dump(Object o)
o
- The entry to dumpdumpEntry(com.ibm.di.entry.Entry)
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |