org.openliberty.arisid.log
Class LogHandler
java.lang.Object
org.openliberty.arisid.log.LogHandler
public class LogHandler
- extends java.lang.Object
Log handler class to allow for switchable logging systems. The logger used
must implement ILogger
, and is specified by setting the system property
"org.openliberty.arisid.log.LoggerClass". The default logger is JavaUtilLogImpl
.
Method Summary |
static ILogger |
getLogger(java.lang.Class<?> name)
Returns a logger usable for a particular class. |
static void |
setNewLoggerClass(java.lang.String logClass)
|
Methods inherited from class java.lang.Object |
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
PROP_LOG_CLASS
public static java.lang.String PROP_LOG_CLASS
DEF_LOG_CLASS
public static java.lang.String DEF_LOG_CLASS
LogHandler
public LogHandler()
setNewLoggerClass
public static void setNewLoggerClass(java.lang.String logClass)
getLogger
public static ILogger getLogger(java.lang.Class<?> name)
- Returns a logger usable for a particular class.
- Parameters:
name
- Name of the class using the logger.
- Returns:
- A handle to an
ILogger