com.opensymphony.xwork2.util.logging
Class LoggerFactory

java.lang.Object
  extended by com.opensymphony.xwork2.util.logging.LoggerFactory
Direct Known Subclasses:
CommonsLoggerFactory, JdkLoggerFactory

public abstract class LoggerFactory
extends Object

Creates loggers. Static accessor will lazily try to decide on the best factory if none specified.


Constructor Summary
LoggerFactory()
           
 
Method Summary
static Logger getLogger(Class<?> cls)
           
static Logger getLogger(String name)
           
protected static LoggerFactory getLoggerFactory()
           
protected abstract  Logger getLoggerImpl(Class<?> cls)
           
protected abstract  Logger getLoggerImpl(String name)
           
static void setLoggerFactory(LoggerFactory factory)
           
 
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

setLoggerFactory

public static void setLoggerFactory(LoggerFactory factory)

getLogger

public static Logger getLogger(Class<?> cls)

getLogger

public static Logger getLogger(String name)

getLoggerFactory

protected static LoggerFactory getLoggerFactory()

getLoggerImpl

protected abstract Logger getLoggerImpl(Class<?> cls)

getLoggerImpl

protected abstract Logger getLoggerImpl(String name)


Copyright © 2009 OpenSymphony. All Rights Reserved.