Package com.bea.wcp.diameter.util
Class Debug
java.lang.Object
com.bea.wcp.diameter.util.Debug
Utility methods for debug logging to stdout.
- Author:
- Copyright (c) 2019, Oracle and/or its affiliates. All rights reserved.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic voidstatic voidstatic voiddebug(String msg, Throwable t, StackTraceElement caller) static StackTraceElementstatic StringgetHost()static booleanisDebug()static voidsetDebug(boolean enabled) static voidSets the host name for the current thread to use when printing log messages.
-
Constructor Details
-
Debug
public Debug()
-
-
Method Details
-
setHost
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
-
setDebug
public static void setDebug(boolean enabled) -
isDebug
public static boolean isDebug() -
debug
-
debug
-
debug
-
getCaller
-