Class Logger
- java.lang.Object
-
- org.glassfish.hk2.utilities.reflection.Logger
-
public class Logger extends Object
A logger for HK2. Currently implemented over the JDK logger- Author:
- jwells
-
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description void
debug(String debuggingMessage)
Sends this message to the Debug channel (FINER level in JDK parlance)void
debug(String className, String methodName, Throwable th)
Sends this message to the Debug channel (FINER level in JDK parlance)void
debug(String debuggingMessage, Throwable th)
Sends this message to the Debug channel (FINER level in JDK parlance)static Logger
getLogger()
Gets the singleton instance of the Loggerstatic void
printThrowable(Throwable th)
Prints a throwable to stdoutvoid
warning(String warningMessage)
Sends this message to the Debug channel (FINER level in JDK parlance)void
warning(String warningMessage, Throwable th)
Sends this message to the Debug channel (FINER level in JDK parlance)
-
-
-
Method Detail
-
getLogger
public static Logger getLogger()
Gets the singleton instance of the Logger- Returns:
- The singleton logger instance (will not return null)
-
debug
public void debug(String debuggingMessage)
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
public void debug(String debuggingMessage, Throwable th)
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
public void warning(String warningMessage)
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
public void warning(String warningMessage, Throwable th)
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
public static void printThrowable(Throwable th)
Prints a throwable to stdout- Parameters:
th
- The throwable to print
-
-