Class Logger
java.lang.Object
org.glassfish.hk2.utilities.reflection.Logger
A logger for HK2. Currently implemented over the JDK logger
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoid
Sends this message to the Debug channel (FINER level in JDK parlance)void
Sends this message to the Debug channel (FINER level in JDK parlance)void
Sends this message to the Debug channel (FINER level in JDK parlance)static Logger
Gets the singleton instance of the Loggerstatic void
Prints a throwable to stdoutvoid
Sends this message to the Debug channel (FINER level in JDK parlance)void
Sends this message to the Debug channel (FINER level in JDK parlance)
-
Field Details
-
INSTANCE
-
HK2_LOGGER_NAME
- See Also:
-
STDOUT_DEBUG
private static final boolean STDOUT_DEBUG -
jdkLogger
-
-
Constructor Details
-
Logger
private Logger()
-
-
Method Details
-
getLogger
Gets the singleton instance of the Logger- Returns:
- The singleton logger instance (will not return null)
-
debug
Sends this message to the Debug channel (FINER level in JDK parlance)- Parameters:
debuggingMessage
- The non-null message to log to the debug logger
-
debug
Sends this message to the Debug channel (FINER level in JDK parlance)- Parameters:
debuggingMessage
- The non-null message to log to the debug logger
-
warning
Sends this message to the Debug channel (FINER level in JDK parlance)- Parameters:
warningMessage
- The non-null message to log to the debug logger
-
warning
Sends this message to the Debug channel (FINER level in JDK parlance)- Parameters:
warningMessage
- The non-null message to log to the debug logger
-
printThrowable
Prints a throwable to stdout- Parameters:
th
- The throwable to print
-
debug
Sends this message to the Debug channel (FINER level in JDK parlance)- Parameters:
className
- The name of the class where this was thrownmethodName
- The name of the method where this was thrownth
- The exception to log
-