Skip navigation links

Oracle Communications Converged Application Server Java API Reference
5.1

E36938-01


com.bea.wcp.diameter.util
Class Debug

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


public final class Debug
extends Object

Utility methods for debug logging to stdout.


Constructor Summary
Debug()
           

 

Method Summary
static void debug(String msg)
           
static void debug(String msg, Throwable t)
           
static void debug(String msg, Throwable t, StackTraceElement caller)
           
static StackTraceElement getCaller()
           
static String getHost()
           
static boolean isDebug()
           
static void setDebug(boolean enabled)
           
static void setHost(String host)
          Sets the host name for the current thread to use when printing log messages.

 

Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait

 

Constructor Detail

Debug

public Debug()

Method Detail

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 (ugh).

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()

Skip navigation links

Oracle Communications Converged Application Server Java API Reference
5.1

E36938-01


Copyright © 2012 Oracle Corporation. All Rights Reserved.