org.glassfish.hk2.utilities.reflection
Class Logger

java.lang.Object
  extended by 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
 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)
static Logger getLogger()
          Gets the singleton instance of the Logger
static void printThrowable(Throwable th)
          Prints a throwable to stdout
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

getLogger

public static Logger getLogger()
Gets the singleton instance of the Logger

Returns:

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

printThrowable

public static void printThrowable(Throwable th)
Prints a throwable to stdout

Parameters:
th - The throwable to print

debug

public void debug(String className,
                  String methodName,
                  Throwable th)
Sends this message to the Debug channel (FINER level in JDK parlance)

Parameters:
className - The name of the class where this was thrown
methodName - The name of the method where this was thrown
th - The exception to log


Copyright © 2013 Oracle Corporation. All Rights Reserved.