com.webmethods.caf.wsclient.logging
Class ConsoleLogListener

java.lang.Object
  extended by com.webmethods.caf.wsclient.logging.ConsoleLogListener
All Implemented Interfaces:
ILogListener

public class ConsoleLogListener
extends Object
implements ILogListener

Implementation of ILogListener that sends all log messages to System.out


Field Summary
 
Fields inherited from interface com.webmethods.caf.wsclient.logging.ILogListener
DEBUG, ERROR, INFO
 
Constructor Summary
ConsoleLogListener()
           
 
Method Summary
 void onLogEvent(String category, String module, String logMessage)
          Event handler method implementation of the ILogListener interface Category can be one of ILogListener.ERROR, ILogListener.DEBUG or ILogListener.INFO
 void onLogEvent(String category, String module, String logMessage, Throwable t)
          Event handler method implementation of the ILogListener interface Category can be one of ILogListener.ERROR, ILogListener.DEBUG or ILogListener.INFO
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ConsoleLogListener

public ConsoleLogListener()
Method Detail

onLogEvent

public void onLogEvent(String category,
                       String module,
                       String logMessage)
Description copied from interface: ILogListener
Event handler method implementation of the ILogListener interface Category can be one of ILogListener.ERROR, ILogListener.DEBUG or ILogListener.INFO

Specified by:
onLogEvent in interface ILogListener
Parameters:
category - the serverity
module - the originating class / module
logMessage - the message details

onLogEvent

public void onLogEvent(String category,
                       String module,
                       String logMessage,
                       Throwable t)
Description copied from interface: ILogListener
Event handler method implementation of the ILogListener interface Category can be one of ILogListener.ERROR, ILogListener.DEBUG or ILogListener.INFO

Specified by:
onLogEvent in interface ILogListener
Parameters:
category - the serverity
module - the originating class / module
logMessage - the message details
t - the exception