java.lang.Object
com.google.web.bindery.requestfactory.server.Logging

public class Logging extends Object
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 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 by JsonLogRecordClientUtil.logRecordAsJson(java.util.logging.LogRecord)
      Throws:
      RemoteLoggingServiceUtil.RemoteLoggingException - if logging fails
    • setSymbolMapsDirectory

      public static void setSymbolMapsDirectory(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 String getId()
      Returns the id of this instance.
      Returns:
      a String id
      See Also:
    • getVersion

      public Integer getVersion()
      Returns the version of this instance.
      Returns:
      an Integer version number
      See Also:
    • setId

      public void setId(String id)
      Sets the id on this instance.
      Parameters:
      id - a String id
      See Also:
    • setVersion

      public void setVersion(Integer version)
      Sets the version of this instance.
      Parameters:
      version - an Integer version number
      See Also: