Class Debug

java.lang.Object
com.bea.wcp.diameter.util.Debug

public final class Debug extends Object
Utility methods for debug logging to stdout.
Author:
Copyright (c) 2019, Oracle and/or its affiliates. All rights reserved.
  • Constructor Details

    • Debug

      public Debug()
  • Method Details

    • setHost

      public static void setHost(String host)
      Sets the host name for the current thread to use when printing log messages. This is only used during standalone testing where we run multiple Node instances within a single process and need to correlate log/debug messages with the issuing node. We use a thread local to keep track of the host name which is not ideal but necessary since there is no way to pass the host name explicitly to the CoreLogger methods.
    • getHost

      public static String getHost()
    • setDebug

      public static void setDebug(boolean enabled)
    • isDebug

      public static boolean isDebug()
    • debug

      public static void debug(String msg, Throwable t)
    • debug

      public static void debug(String msg)
    • debug

      public static void debug(String msg, Throwable t, StackTraceElement caller)
    • getCaller

      public static StackTraceElement getCaller()