Skip navigation links
com.bea.wcp.diameter.util
Class Debug
java.lang.Object
com.bea.wcp.diameter.util.Debug
-
public final class Debug
- extends java.lang.Object
Utility methods for debug logging to stdout.
Constructor Summary |
Debug()
|
Method Summary |
static void |
debug(java.lang.String msg)
|
static void |
debug(java.lang.String msg, java.lang.Throwable t)
|
static void |
debug(java.lang.String msg, java.lang.Throwable t, java.lang.StackTraceElement caller)
|
static java.lang.StackTraceElement |
getCaller()
|
static java.lang.String |
getHost()
|
static boolean |
isDebug()
|
static void |
setDebug(boolean enabled)
|
static void |
setHost(java.lang.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 |
Debug
public Debug()
setHost
public static void setHost(java.lang.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 java.lang.String getHost()
setDebug
public static void setDebug(boolean enabled)
isDebug
public static boolean isDebug()
debug
public static void debug(java.lang.String msg,
java.lang.Throwable t)
debug
public static void debug(java.lang.String msg)
debug
public static void debug(java.lang.String msg,
java.lang.Throwable t,
java.lang.StackTraceElement caller)
getCaller
public static java.lang.StackTraceElement getCaller()
Skip navigation links
Copyright © 2005, 2010, Oracle and/or its affiliates. All rights reserved.