Class Logging
java.lang.Object
com.google.web.bindery.requestfactory.server.jakarta.Logging
Server-side object that handles log messages sent by
RequestFactoryLogHandler
.
To use this in jakarta.servlet
projects, be sure to reference
com.google.web.bindery.requestfactory.shared.jakarta.LoggingRequest
instead
of the non-jakarta version, and making a copy of RequestFactoryLogHandler
that uses it.
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptiongetId()
Returns the id of this instance.Returns the version of this instance.static void
logMessage
(String logRecordJson) Logs a message.void
Sets the id on this instance.static void
setStackTraceDeobfuscator
(StackTraceDeobfuscator stackTraceDeobfuscator) This function is only for server-side use which is why it's not in the LoggingRequest interface.static void
This function is only for server-side use which is why it's not in the LoggingRequest interface.void
setVersion
(Integer version) Sets the version of this instance.
-
Constructor Details
-
Logging
public Logging()
-
-
Method Details
-
logMessage
public static void logMessage(String logRecordJson) throws RemoteLoggingServiceUtil.RemoteLoggingException Logs a message.- Parameters:
logRecordJson
- a json serialized LogRecord, as provided byJsonLogRecordClientUtil.logRecordAsJson(java.util.logging.LogRecord)
- Throws:
RemoteLoggingServiceUtil.RemoteLoggingException
- if logging fails
-
setSymbolMapsDirectory
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
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
Returns the id of this instance.- Returns:
- a String id
- See Also:
-
getVersion
Returns the version of this instance.- Returns:
- an Integer version number
- See Also:
-
setId
Sets the id on this instance.- Parameters:
id
- a String id- See Also:
-
setVersion
Sets the version of this instance.- Parameters:
version
- an Integer version number- See Also:
-