Interface JCoTraceListener


public interface JCoTraceListener
JCo trace listener interface. An application (server) implements this interface if it wants to intercept trace messages. Typically it is needed, if the JCo traces shall be redirected into a trace infrastructure so that it's interwoven with traces of layers above.
  • Field Summary

    Fields
    Modifier and Type
    Field
    Description
    static final int
    Includes errors and warnings.
    static final int
    Error information is written to trace.
    static final int
    Full trace.
    static final int
    Compared to SHORT_DEBUG, now all method invocations are traced (those that are traced at all).
    static final int
    The invocation of additional methods is added to trace compared to PATH_API.
    static final int
    Adds informational messages to trace in addition to errors and warnings.
    static final int
    No trace is written.
    static final int
    The invocation of API methods is added compared to INFO_PATH_API.
    static final int
    Some more verbose information including limited data containers are added compared to INFO_PATH.
  • Method Summary

    Modifier and Type
    Method
    Description
    void
    trace(int traceLevel, String message)
    Called when a trace message is being issued.
  • Field Details

    • NONE

      static final int NONE
      No trace is written.
      See Also:
    • ERRORS

      static final int ERRORS
      Error information is written to trace.
      See Also:
    • ERROR_WARNING

      static final int ERROR_WARNING
      Includes errors and warnings.
      See Also:
    • INFO_PATH_API

      static final int INFO_PATH_API
      Adds informational messages to trace in addition to errors and warnings.
      See Also:
    • PATH_API

      static final int PATH_API
      The invocation of API methods is added compared to INFO_PATH_API.
      See Also:
    • INFO_PATH

      static final int INFO_PATH
      The invocation of additional methods is added to trace compared to PATH_API.
      See Also:
    • SHORT_DEBUG

      static final int SHORT_DEBUG
      Some more verbose information including limited data containers are added compared to INFO_PATH.
      See Also:
    • FULL_PATH

      static final int FULL_PATH
      Compared to SHORT_DEBUG, now all method invocations are traced (those that are traced at all). Additionally, the metadata is added to data container traces.
      See Also:
    • FULL_DEBUG

      static final int FULL_DEBUG
      Full trace. Verbose information including complete data container dumps with metadata information, method invocations, informational traces and more.
      See Also:
  • Method Details

    • trace

      void trace(int traceLevel, String message)
      Called when a trace message is being issued. The trace level of the message is out of the range 0 to 8.
      Parameters:
      traceLevel - the trace level
      message - the trace message