Package com.google.gwt.logging.server
Class RemoteLoggingServiceImpl
java.lang.Object
javax.servlet.GenericServlet
javax.servlet.http.HttpServlet
com.google.gwt.user.server.rpc.AbstractRemoteServiceServlet
com.google.gwt.user.server.rpc.RemoteServiceServlet
com.google.gwt.logging.server.RemoteLoggingServiceImpl
- All Implemented Interfaces:
RemoteLoggingService,RemoteService,SerializationPolicyProvider,Serializable,javax.servlet.Servlet,javax.servlet.ServletConfig
Server-side code for the remote log handler.
- See Also:
-
Field Summary
Fields inherited from class com.google.gwt.user.server.rpc.AbstractRemoteServiceServlet
perThreadRequest, perThreadResponse -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionfinal StringlogOnServer(LogRecord lr) Logs a Log Record which has been serialized using GWT RPC on the server.voidsetLoggerNameOverride(String override) By default, messages are logged to a logger that has the same name as the logger that created them on the client.voidsetSymbolMapsDirectory(String symbolMapsDir) By default, this service does not do any deobfuscation.Methods inherited from class com.google.gwt.user.server.rpc.RemoteServiceServlet
checkPermutationStrongName, doGetSerializationPolicy, getCodeServerPolicyUrl, getRequestModuleBasePath, getSerializationPolicy, init, loadPolicyFromCodeServer, onAfterResponseSerialized, onBeforeRequestDeserialized, processCall, processCall, processPost, shouldCompressResponseMethods inherited from class com.google.gwt.user.server.rpc.AbstractRemoteServiceServlet
doPost, doUnexpectedFailure, getPermutationStrongName, getThreadLocalRequest, getThreadLocalResponse, onAfterRequestDeserialized, readContentMethods inherited from class javax.servlet.http.HttpServlet
doDelete, doGet, doHead, doOptions, doPut, doTrace, getLastModified, service, serviceMethods inherited from class javax.servlet.GenericServlet
destroy, getInitParameter, getInitParameterNames, getServletConfig, getServletContext, getServletInfo, getServletName, init, log, log
-
Constructor Details
-
RemoteLoggingServiceImpl
public RemoteLoggingServiceImpl()
-
-
Method Details
-
logOnServer
Logs a Log Record which has been serialized using GWT RPC on the server.- Specified by:
logOnServerin interfaceRemoteLoggingService- Returns:
- either an error message, or null if logging is successful.
-
setLoggerNameOverride
By default, messages are logged to a logger that has the same name as the logger that created them on the client. If you want to log all messages from the client to a logger with another name, you can set the override using this method. -
setSymbolMapsDirectory
By default, this service does not do any deobfuscation. In order to do server-side deobfuscation, you must copy the symbolMaps files to a directory visible to the server and set the directory using this method.
-