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
-
Method Summary
Modifier and TypeMethodDescriptionfinal String
logOnServer
(LogRecord lr) Logs a Log Record which has been serialized using GWT RPC on the server.void
setLoggerNameOverride
(String override) By default, messages are logged to a logger that has the same name as the logger that created them on the client.void
setSymbolMapsDirectory
(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, shouldCompressResponse
Methods inherited from class com.google.gwt.user.server.rpc.AbstractRemoteServiceServlet
doPost, doUnexpectedFailure, getPermutationStrongName, getThreadLocalRequest, getThreadLocalResponse, onAfterRequestDeserialized, readContent
Methods inherited from class javax.servlet.http.HttpServlet
doDelete, doGet, doHead, doOptions, doPut, doTrace, getLastModified, service, service
Methods 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:
logOnServer
in 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.
-