public class Logger
extends java.lang.Object
| Modifier and Type | Field and Description |
|---|---|
private static java.lang.String |
HK2_LOGGER_NAME |
private static Logger |
INSTANCE |
private java.util.logging.Logger |
jdkLogger |
private static boolean |
STDOUT_DEBUG |
| Modifier | Constructor and Description |
|---|---|
private |
Logger() |
| Modifier and Type | Method and Description |
|---|---|
void |
debug(java.lang.String debuggingMessage)
Sends this message to the Debug channel (FINER level in JDK parlance)
|
void |
debug(java.lang.String className,
java.lang.String methodName,
java.lang.Throwable th)
Sends this message to the Debug channel (FINER level in JDK parlance)
|
void |
debug(java.lang.String debuggingMessage,
java.lang.Throwable th)
Sends this message to the Debug channel (FINER level in JDK parlance)
|
static Logger |
getLogger()
Gets the singleton instance of the Logger
|
static void |
printThrowable(java.lang.Throwable th)
Prints a throwable to stdout
|
void |
warning(java.lang.String warningMessage)
Sends this message to the Debug channel (FINER level in JDK parlance)
|
void |
warning(java.lang.String warningMessage,
java.lang.Throwable th)
Sends this message to the Debug channel (FINER level in JDK parlance)
|
private static final Logger INSTANCE
private static final java.lang.String HK2_LOGGER_NAME
private static final boolean STDOUT_DEBUG
private final java.util.logging.Logger jdkLogger
public static Logger getLogger()
public void debug(java.lang.String debuggingMessage)
debuggingMessage - The non-null message to log to the debug loggerpublic void debug(java.lang.String debuggingMessage,
java.lang.Throwable th)
debuggingMessage - The non-null message to log to the debug loggerpublic void warning(java.lang.String warningMessage)
warningMessage - The non-null message to log to the debug loggerpublic void warning(java.lang.String warningMessage,
java.lang.Throwable th)
warningMessage - The non-null message to log to the debug loggerpublic static void printThrowable(java.lang.Throwable th)
th - The throwable to printpublic void debug(java.lang.String className,
java.lang.String methodName,
java.lang.Throwable th)
className - The name of the class where this was thrownmethodName - The name of the method where this was thrownth - The exception to log