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 java.lang.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(java.lang.Class<?> cls)
           
static Logger getLogger(java.lang.String name)
           
protected static LoggerFactory getLoggerFactory()
           
protected abstract  Logger getLoggerImpl(java.lang.Class<?> cls)
           
protected abstract  Logger getLoggerImpl(java.lang.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(java.lang.Class<?> cls)

getLogger

public static Logger getLogger(java.lang.String name)

getLoggerFactory

protected static LoggerFactory getLoggerFactory()

getLoggerImpl

protected abstract Logger getLoggerImpl(java.lang.Class<?> cls)

getLoggerImpl

protected abstract Logger getLoggerImpl(java.lang.String name)


Copyright © 2000-2011 Apache Software Foundation. All Rights Reserved.