com.google.gwt.libideas.logging.client
Class RemoteLogHandler

java.lang.Object
  extended by com.google.gwt.libideas.logging.shared.LogHandler
      extended by com.google.gwt.libideas.logging.client.RemoteLogHandler

public class RemoteLogHandler
extends LogHandler

Handler to publish messages over RPC.

Note:

While this class ended up sharing no code with gwt-logs remote service API due to naming/functionality differences, its design is modeled using the same pattern as the gwt-logs RemoteLogger.


Constructor Summary
RemoteLogHandler()
           
RemoteLogHandler(RemoteLoggingServiceAsync service)
           
 
Method Summary
 void publish(java.lang.String message, Level level, java.lang.String category, java.lang.Throwable e)
          publish the message.
 void setCallBack(com.google.gwt.user.client.rpc.AsyncCallback callback)
           
 
Methods inherited from class com.google.gwt.libideas.logging.shared.LogHandler
clear, format, getLevel, hideHandler, isSupported, setLevel
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

RemoteLogHandler

public RemoteLogHandler()

RemoteLogHandler

public RemoteLogHandler(RemoteLoggingServiceAsync service)
Method Detail

publish

public void publish(java.lang.String message,
                    Level level,
                    java.lang.String category,
                    java.lang.Throwable e)
Description copied from class: LogHandler
publish the message.

Specified by:
publish in class LogHandler
Parameters:
message - the message
level - the message's level
category - optional category
e - optional throwable

setCallBack

public void setCallBack(com.google.gwt.user.client.rpc.AsyncCallback callback)