|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.ibm.di.fc.remotecmdlnfc.LogProxyImpl
public final class LogProxyImpl
Proxy for the Logging framework.
Constructor Summary | |
---|---|
LogProxyImpl()
Constructor of the class |
|
LogProxyImpl(Log log)
Constructor with a Log object given |
Method Summary | |
---|---|
void |
close()
Close the output logger |
void |
debug(String res)
Logs a debug message |
void |
debug(String res,
Object param)
Logs a debug message |
void |
debug(String res,
Object[] params)
Logs a debug message |
void |
debug(String res,
Object param1,
Object param2)
Logs a debug message |
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)
Logs an error message |
void |
error(String res,
Object[] params)
Logs an error message |
void |
error(String res,
Object[] params,
Throwable error)
Logs an error message |
void |
error(String res,
Object param,
Throwable error)
Logs an error message |
void |
error(String res,
String param)
Logs an error message |
void |
error(String res,
String param1,
String param2)
Logs an error message |
void |
error(String res,
Throwable error)
Logs an error message |
void |
fatal(String res)
Log a message with level fatal |
void |
fatal(String res,
Object param)
Log a message with level fatal |
void |
fatal(String res,
Object[] params)
Log a message with level fatal |
void |
fatal(String res,
Object param,
Throwable err)
Log a message with level fatal |
void |
fatal(String res,
Throwable err)
Log a message with level fatal |
void |
fine(String res)
Logs a debug message if logging is enabled |
void |
fine(String res,
Object param)
Logs a debug message if logging is enabled |
void |
fine(String res,
Object[] params)
Logs a debug message if logging is enabled |
void |
fine(String res,
Object param1,
Object param2)
Logs a debug message if logging is enabled |
boolean |
getDebug()
Return the value of the debug parameter. |
Log |
getLog()
retrieves the log file that we have. |
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)
Log a message with level info |
void |
info(String res,
Object param)
Log a message with level info |
void |
info(String res,
Object[] params)
Log a message with level info |
void |
info(String res,
Object param1,
Object param2)
Log a message with level info |
void |
log(String level,
String msg)
Log a message with the specified level |
void |
logdebug(String msg)
Log a message with debug level |
void |
logerror(String msg)
Log a message with error level |
void |
logerror(String msg,
Throwable error)
Log a message with error level |
void |
logfatal(String msg)
Log a message with fatal level |
void |
logfine(String msg)
Logs a message to the output stream. |
void |
loginfo(String msg)
Logs a message to the output stream. |
void |
logwarn(String msg)
Logs a message to the output stream. |
void |
setDebug(boolean debug)
Sets debug parameter. |
void |
setLog(Log log)
Set the log object we are proxy for. |
void |
setPrefix(String prefix)
Sets a prefix to be prepended to all messages. |
void |
warn(String res)
Log a message with level warning |
void |
warn(String res,
Object param)
Log a message with level warning |
void |
warn(String res,
Object[] params)
Log a message with level warning |
void |
warn(String res,
Object param1,
Object param2)
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 LogProxyImpl()
public LogProxyImpl(Log log)
log
- the server Log objectMethod Detail |
---|
public void close()
close
in interface LogProxy
public void debug(String res)
debug
in interface LogProxy
res
- Text of the messagepublic void debug(String res, Object param)
debug
in interface LogProxy
res
- Text of the messageparam
- parameter of the messagepublic void debug(String res, Object[] params)
debug
in interface LogProxy
res
- Text of the messageparams
- parameters of the messagepublic void debug(String res, Object param1, Object param2)
debug
in interface LogProxy
res
- Text of the messageparam1
- First parameter of the messageparam2
- Second parameter of the messagepublic void dump(Object o)
dump
in interface LogProxy
o
- Object to be dumpedpublic void dumpEntry(Entry e)
dumpEntry
in interface LogProxy
e
- Entry to be dumpedpublic void error(String res)
error
in interface LogProxy
res
- Text of the messagepublic void error(String res, Object[] params)
error
in interface LogProxy
res
- Text of the messageparams
- parameters of the messagepublic void error(String res, Object[] params, Throwable error)
error
in interface LogProxy
res
- Text of the messageparams
- parameters of the messageerror
- Throwable errorpublic void error(String res, Object param, Throwable error)
error
in interface LogProxy
res
- Text of the messageparam
- parameter of the messageerror
- Throwable errorpublic void error(String res, String param)
error
in interface LogProxy
res
- Text of the messageparam
- parameter of the messagepublic void error(String res, String param1, String param2)
error
in interface LogProxy
res
- Text of the messageparam1
- first parameters of the messageparam2
- second parameters of the messagepublic void error(String res, Throwable error)
error
in interface LogProxy
res
- Text of the messageerror
- Throwable errorpublic void fatal(String res)
fatal
in interface LogProxy
res
- Text of the messagepublic void fatal(String res, Object param)
fatal
in interface LogProxy
res
- Text of the messageparam
- parameter of the messagepublic void fatal(String res, Object[] params)
fatal
in interface LogProxy
res
- Text of the messageparams
- parameters of the messagepublic void fatal(String res, Object param, Throwable err)
fatal
in interface LogProxy
res
- Text of the messageparam
- parameter of the messageerr
- Throwable errorpublic void fatal(String res, Throwable err)
fatal
in interface LogProxy
res
- Text of the messageerr
- Throwable errorpublic void fine(String res)
fine
in interface LogProxy
res
- Text of the messagepublic void fine(String res, Object param)
fine
in interface LogProxy
res
- Text of the messageparam
- parameter of the messagepublic void fine(String res, Object[] params)
fine
in interface LogProxy
res
- Text of the messageparams
- parameters of the messagepublic void fine(String res, Object param1, Object param2)
fine
in interface LogProxy
res
- Text of the messageparam1
- first parameter of the messageparam2
- second parameter of the messagepublic boolean getDebug()
getDebug
in interface LogProxy
public String getPrefix()
getPrefix
in interface LogProxy
public String getString(String resource)
getString
in interface LogProxy
resource
- String
public String getString(String resource, Object param)
getString
in interface LogProxy
resource
- Stringparam
- parameter
public String getString(String resource, Object[] params)
getString
in interface LogProxy
resource
- Stringparams
- Array of parameters
public String getString(String resource, Object param1, Object param2)
getString
in interface LogProxy
resource
- Stringparam1
- first parameterparam2
- second parameter
public void info(String res)
info
in interface LogProxy
res
- Text of the messagepublic void info(String res, Object param)
info
in interface LogProxy
res
- Text of the messageparam
- parameter of the messagepublic void info(String res, Object[] params)
info
in interface LogProxy
res
- Text of the messageparams
- parameters of the messagepublic void info(String res, Object param1, Object param2)
info
in interface LogProxy
res
- Text of the messageparam1
- first parameter of the messageparam2
- second parameter of the messagepublic void log(String level, String msg)
log
in interface LogProxy
level
- the level of the messagemsg
- Text of the messagepublic void logdebug(String msg)
logdebug
in interface LogProxy
msg
- Text of the messagepublic void logerror(String msg)
logerror
in interface LogProxy
msg
- Text of the messagepublic void logerror(String msg, Throwable error)
logerror
in interface LogProxy
msg
- Text of the messageerror
- Throwable errorpublic void logfatal(String msg)
logfatal
in interface LogProxy
msg
- Text of the messagepublic void logfine(String msg)
logfine
in interface LogProxy
msg
- Text of the messagepublic void loginfo(String msg)
loginfo
in interface LogProxy
msg
- Text of the messagepublic void logwarn(String msg)
logwarn
in interface LogProxy
msg
- Text of the messagepublic void setDebug(boolean debug)
setDebug
in interface LogProxy
debug
- true or falsepublic void setPrefix(String prefix)
setPrefix
in interface LogProxy
public void warn(String res)
warn
in interface LogProxy
res
- Text of the messagepublic void warn(String res, Object param)
warn
in interface LogProxy
res
- Text of the messageparam
- parameter of the messagepublic void warn(String res, Object[] params)
warn
in interface LogProxy
res
- Text of the messageparams
- parameters of the messagepublic void warn(String res, Object param1, Object param2)
warn
in interface LogProxy
res
- Text of the messageparam1
- first parameter of the messageparam2
- second parameter of the messagepublic Log getLog()
getLog
in interface LogProxy
public void setLog(Log log)
log
-
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |