com.google.gwt.libideas.logging.client
Class RemoteLogHandler
java.lang.Object
com.google.gwt.libideas.logging.shared.LogHandler
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
.
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 java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
RemoteLogHandler
public RemoteLogHandler()
RemoteLogHandler
public RemoteLogHandler(RemoteLoggingServiceAsync service)
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 messagelevel
- the message's levelcategory
- optional categorye
- optional throwable
setCallBack
public void setCallBack(com.google.gwt.user.client.rpc.AsyncCallback callback)