com.ibm.di.fc.remotecmdlnfc
Class LogProxyImpl

java.lang.Object
  extended by com.ibm.di.fc.remotecmdlnfc.LogProxyImpl
All Implemented Interfaces:
LogProxy

public final class LogProxyImpl
extends Object
implements LogProxy

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

LogProxyImpl

public LogProxyImpl()
Constructor of the class


LogProxyImpl

public LogProxyImpl(Log log)
Constructor with a Log object given

Parameters:
log - the server Log object
Method Detail

close

public void close()
Close the output logger

Specified by:
close in interface LogProxy

debug

public void debug(String res)
Logs a debug message

Specified by:
debug in interface LogProxy
Parameters:
res - Text of the message

debug

public void debug(String res,
                  Object param)
Logs a debug message

Specified by:
debug in interface LogProxy
Parameters:
res - Text of the message
param - parameter of the message

debug

public void debug(String res,
                  Object[] params)
Logs a debug message

Specified by:
debug in interface LogProxy
Parameters:
res - Text of the message
params - parameters of the message

debug

public void debug(String res,
                  Object param1,
                  Object param2)
Logs a debug message

Specified by:
debug in interface LogProxy
Parameters:
res - Text of the message
param1 - First parameter of the message
param2 - Second parameter of the message

dump

public void dump(Object o)
This methods dumps an Object to the log file.

Specified by:
dump in interface LogProxy
Parameters:
o - Object to be dumped

dumpEntry

public void dumpEntry(Entry e)
Dumps a formatted message to the logfile from the contents of an Entry.

Specified by:
dumpEntry in interface LogProxy
Parameters:
e - Entry to be dumped

error

public void error(String res)
Logs an error message

Specified by:
error in interface LogProxy
Parameters:
res - Text of the message

error

public void error(String res,
                  Object[] params)
Logs an error message

Specified by:
error in interface LogProxy
Parameters:
res - Text of the message
params - parameters of the message

error

public void error(String res,
                  Object[] params,
                  Throwable error)
Logs an error message

Specified by:
error in interface LogProxy
Parameters:
res - Text of the message
params - parameters of the message
error - Throwable error

error

public void error(String res,
                  Object param,
                  Throwable error)
Logs an error message

Specified by:
error in interface LogProxy
Parameters:
res - Text of the message
param - parameter of the message
error - Throwable error

error

public void error(String res,
                  String param)
Logs an error message

Specified by:
error in interface LogProxy
Parameters:
res - Text of the message
param - parameter of the message

error

public void error(String res,
                  String param1,
                  String param2)
Logs an error message

Specified by:
error in interface LogProxy
Parameters:
res - Text of the message
param1 - first parameters of the message
param2 - second parameters of the message

error

public void error(String res,
                  Throwable error)
Logs an error message

Specified by:
error in interface LogProxy
Parameters:
res - Text of the message
error - Throwable error

fatal

public void fatal(String res)
Log a message with level fatal

Specified by:
fatal in interface LogProxy
Parameters:
res - Text of the message

fatal

public void fatal(String res,
                  Object param)
Log a message with level fatal

Specified by:
fatal in interface LogProxy
Parameters:
res - Text of the message
param - parameter of the message

fatal

public void fatal(String res,
                  Object[] params)
Log a message with level fatal

Specified by:
fatal in interface LogProxy
Parameters:
res - Text of the message
params - parameters of the message

fatal

public void fatal(String res,
                  Object param,
                  Throwable err)
Log a message with level fatal

Specified by:
fatal in interface LogProxy
Parameters:
res - Text of the message
param - parameter of the message
err - Throwable error

fatal

public void fatal(String res,
                  Throwable err)
Log a message with level fatal

Specified by:
fatal in interface LogProxy
Parameters:
res - Text of the message
err - Throwable error

fine

public void fine(String res)
Logs a debug message if logging is enabled

Specified by:
fine in interface LogProxy
Parameters:
res - Text of the message

fine

public void fine(String res,
                 Object param)
Logs a debug message if logging is enabled

Specified by:
fine in interface LogProxy
Parameters:
res - Text of the message
param - parameter of the message

fine

public void fine(String res,
                 Object[] params)
Logs a debug message if logging is enabled

Specified by:
fine in interface LogProxy
Parameters:
res - Text of the message
params - parameters of the message

fine

public void fine(String res,
                 Object param1,
                 Object param2)
Logs a debug message if logging is enabled

Specified by:
fine in interface LogProxy
Parameters:
res - Text of the message
param1 - first parameter of the message
param2 - second parameter of the message

getDebug

public boolean getDebug()
Return the value of the debug parameter.

Specified by:
getDebug in interface LogProxy
Returns:
true or false

getPrefix

public String getPrefix()
Returns the prefix to be prepended to all messages.

Specified by:
getPrefix in interface LogProxy
Returns:
prefix

getString

public String getString(String resource)
Return the NLS string given the resource.

Specified by:
getString in interface LogProxy
Parameters:
resource - String
Returns:
NLS String

getString

public String getString(String resource,
                        Object param)
Return the NLS string given the resource and a parameter.

Specified by:
getString in interface LogProxy
Parameters:
resource - String
param - parameter
Returns:
NLS String

getString

public String getString(String resource,
                        Object[] params)
Return the NLS string given the resource and an array of parameters.

Specified by:
getString in interface LogProxy
Parameters:
resource - String
params - Array of parameters
Returns:
NLS String

getString

public String getString(String resource,
                        Object param1,
                        Object param2)
Return the NLS string given the resource and two parameters.

Specified by:
getString in interface LogProxy
Parameters:
resource - String
param1 - first parameter
param2 - second parameter
Returns:
NLS String

info

public void info(String res)
Log a message with level info

Specified by:
info in interface LogProxy
Parameters:
res - Text of the message

info

public void info(String res,
                 Object param)
Log a message with level info

Specified by:
info in interface LogProxy
Parameters:
res - Text of the message
param - parameter of the message

info

public void info(String res,
                 Object[] params)
Log a message with level info

Specified by:
info in interface LogProxy
Parameters:
res - Text of the message
params - parameters of the message

info

public void info(String res,
                 Object param1,
                 Object param2)
Log a message with level info

Specified by:
info in interface LogProxy
Parameters:
res - Text of the message
param1 - first parameter of the message
param2 - second parameter of the message

log

public void log(String level,
                String msg)
Log a message with the specified level

Specified by:
log in interface LogProxy
Parameters:
level - the level of the message
msg - Text of the message

logdebug

public void logdebug(String msg)
Log a message with debug level

Specified by:
logdebug in interface LogProxy
Parameters:
msg - Text of the message

logerror

public void logerror(String msg)
Log a message with error level

Specified by:
logerror in interface LogProxy
Parameters:
msg - Text of the message

logerror

public void logerror(String msg,
                     Throwable error)
Log a message with error level

Specified by:
logerror in interface LogProxy
Parameters:
msg - Text of the message
error - Throwable error

logfatal

public void logfatal(String msg)
Log a message with fatal level

Specified by:
logfatal in interface LogProxy
Parameters:
msg - Text of the message

logfine

public void logfine(String msg)
Logs a message to the output stream.

Specified by:
logfine in interface LogProxy
Parameters:
msg - Text of the message

loginfo

public void loginfo(String msg)
Logs a message to the output stream.

Specified by:
loginfo in interface LogProxy
Parameters:
msg - Text of the message

logwarn

public void logwarn(String msg)
Logs a message to the output stream.

Specified by:
logwarn in interface LogProxy
Parameters:
msg - Text of the message

setDebug

public void setDebug(boolean debug)
Sets debug parameter.

Specified by:
setDebug in interface LogProxy
Parameters:
debug - true or false

setPrefix

public void setPrefix(String prefix)
Sets a prefix to be prepended to all messages.

Specified by:
setPrefix in interface LogProxy

warn

public void warn(String res)
Log a message with level warning

Specified by:
warn in interface LogProxy
Parameters:
res - Text of the message

warn

public void warn(String res,
                 Object param)
Log a message with level warning

Specified by:
warn in interface LogProxy
Parameters:
res - Text of the message
param - parameter of the message

warn

public void warn(String res,
                 Object[] params)
Log a message with level warning

Specified by:
warn in interface LogProxy
Parameters:
res - Text of the message
params - parameters of the message

warn

public void warn(String res,
                 Object param1,
                 Object param2)
Log a message with level warning

Specified by:
warn in interface LogProxy
Parameters:
res - Text of the message
param1 - first parameter of the message
param2 - second parameter of the message

getLog

public Log getLog()
retrieves the log file that we have.

Specified by:
getLog in interface LogProxy
Returns:
Log

setLog

public void setLog(Log log)
Set the log object we are proxy for.

Parameters:
log -