Interface BrokerContext

    • Method Detail

      • isTraceMessageLoggable

        @Deprecated
        boolean isTraceMessageLoggable()
        Deprecated.
        See the trace log-related methods in ServerContext.
        Indicates whether trace log messages from extensions are loggable to any trace log publishers. This allows callers to avoid expensive message construction for messages that are not going to be logged.
        Returns:
        true if trace log messages from extensions are loggable to any trace log publishers
      • logTraceMessage

        @Deprecated
        void logTraceMessage​(java.lang.String message)
        Deprecated.
        See the trace log-related methods in ServerContext.
        Writes a message to the server trace log publishers. Sensitive information must not be included in the contents of the message.

        Trace log messages should be used in methods that are called when processing an incoming request. The trace log will automatically include request identifiers in the log messages so that all log messages about a request can be correlated.

        You can use the search-logs command-line tool on the trace log file to extract only the messages logged by your extension.

        Parameters:
        message - The message to be logged. It must not be null.
      • logTraceMessage

        @Deprecated
        void logTraceMessage​(java.lang.String message,
                             java.util.Map<java.lang.String,​java.lang.String> keyValues)
        Deprecated.
        See the trace log-related methods in ServerContext.
        Writes a message to the server trace log publishers, including key value pairs to be logged with the message. Sensitive information must not be included in the contents of the message or the key value pairs.

        Trace log messages should be used in methods that are called when processing an incoming request. The trace log will automatically include request identifiers in the log messages so that all log messages about a request can be correlated.

        You can use the search-logs command-line tool on the trace log file to extract only the messages logged by your extension.

        Parameters:
        message - The message to be logged. It must not be null.
        keyValues - Keys and values that are to be logged with key=value. It may be null.