Project Aristotle - ArisID Attribute Services

org.openliberty.arisid.log
Class LogHandler

java.lang.Object
  extended by 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.


Field Summary
static java.lang.String DEF_LOG_CLASS
           
static java.lang.String PROP_LOG_CLASS
           
 
Constructor Summary
LogHandler()
           
 
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
 

Field Detail

PROP_LOG_CLASS

public static java.lang.String PROP_LOG_CLASS

DEF_LOG_CLASS

public static java.lang.String DEF_LOG_CLASS
Constructor Detail

LogHandler

public LogHandler()
Method Detail

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

OpenLiberty.org - Licensed under Apache APL 2.0