Class Logging
- java.lang.Object
-
- com.google.web.bindery.requestfactory.server.Logging
-
public class Logging extends java.lang.ObjectServer-side object that handles log messages sent byRequestFactoryLogHandler.
-
-
Constructor Summary
Constructors Constructor Description Logging()
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description java.lang.StringgetId()Returns the id of this instance.java.lang.IntegergetVersion()Returns the version of this instance.static voidlogMessage(java.lang.String logRecordJson)Logs a message.voidsetId(java.lang.String id)Sets the id on this instance.static voidsetStackTraceDeobfuscator(StackTraceDeobfuscator stackTraceDeobfuscator)This function is only for server-side use which is why it's not in the LoggingRequest interface.static voidsetSymbolMapsDirectory(java.lang.String dir)This function is only for server-side use which is why it's not in the LoggingRequest interface.voidsetVersion(java.lang.Integer version)Sets the version of this instance.
-
-
-
Method Detail
-
logMessage
public static void logMessage(java.lang.String logRecordJson) throws RemoteLoggingServiceUtil.RemoteLoggingExceptionLogs a message.- Parameters:
logRecordJson- a json serialized LogRecord, as provided byJsonLogRecordClientUtil.logRecordAsJsonObject(LogRecord)- Throws:
RemoteLoggingServiceUtil.RemoteLoggingException- if logging fails
-
setSymbolMapsDirectory
public static void setSymbolMapsDirectory(java.lang.String dir)
This function is only for server-side use which is why it's not in the LoggingRequest interface.- Parameters:
dir- a directory, specified as a String
-
setStackTraceDeobfuscator
public static void setStackTraceDeobfuscator(StackTraceDeobfuscator stackTraceDeobfuscator)
This function is only for server-side use which is why it's not in the LoggingRequest interface.- Parameters:
stackTraceDeobfuscator- the StackTraceDeobfuscator instance to use
-
getId
public java.lang.String getId()
Returns the id of this instance.- Returns:
- a String id
- See Also:
setId(String)
-
getVersion
public java.lang.Integer getVersion()
Returns the version of this instance.- Returns:
- an Integer version number
- See Also:
setVersion(Integer)
-
setId
public void setId(java.lang.String id)
Sets the id on this instance.- Parameters:
id- a String id- See Also:
getId()
-
setVersion
public void setVersion(java.lang.Integer version)
Sets the version of this instance.- Parameters:
version- an Integer version number- See Also:
getVersion()
-
-