com.aragost.javahg.log
Class LoggerFactory

java.lang.Object
  extended by com.aragost.javahg.log.LoggerFactory
Direct Known Subclasses:
JULLoggerFactory

public abstract class LoggerFactory
extends Object

Factory class to retrieve a Logger instance. The LoggerFactory searches a implementation with the use of ServiceLoader, if no implementation could be found it uses the default implementation JULLoggerFactory.


Constructor Summary
LoggerFactory()
           
 
Method Summary
static Logger getLogger(Class<?> cls)
          Return a logger for the class
protected abstract  Logger getLoggerInstance(Class<?> cls)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

LoggerFactory

public LoggerFactory()
Method Detail

getLogger

public static Logger getLogger(Class<?> cls)
Return a logger for the class

Parameters:
cls -
Returns:

getLoggerInstance

protected abstract Logger getLoggerInstance(Class<?> cls)


Copyright © 2011-2013 aragost Trifork ag. All Rights Reserved.