de.jreality.util
Class LoggingSystem

java.lang.Object
  extended by de.jreality.util.LoggingSystem

public class LoggingSystem
extends Object

LoggingSystem for jReality. This sets up a base logger called de.jreality that has default Level=Level.SEVERE and does not pass records to the parent logger. For debugging special packages simply set the Level for the "package"-Logger to what you want.

Author:
weissman

Method Summary
static Logger getLogger(Class clazz)
          factory method to get a logger.
static Logger getLogger(Object o)
          factory method to get a logger.
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

getLogger

public static Logger getLogger(Object o)
factory method to get a logger. Usually this is the right method to get a logger - LoggingSystem.getLogger(this).log(...)

Parameters:
-
Returns:
a logger named like the package of the given object

getLogger

public static Logger getLogger(Class clazz)
factory method to get a logger. This is the right method to get a logger in a static context - LoggingSystem.getLogger(MyCurrentClass.class).log(...)

Parameters:
-
Returns:
a logger named like the package of the given class