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.


Field Summary
private static LoggerFactory factory
           
private static ReadWriteLock lock
           
 
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
 

Field Detail

lock

private static final ReadWriteLock lock

factory

private static LoggerFactory factory
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 © 2000-2009 Apache Software Foundation. All Rights Reserved.