com.opensymphony.xwork2.util.logging.log4j2
Class Log4j2LoggerFactory

java.lang.Object
  extended by com.opensymphony.xwork2.util.logging.LoggerFactory
      extended by com.opensymphony.xwork2.util.logging.log4j2.Log4j2LoggerFactory

public class Log4j2LoggerFactory
extends LoggerFactory

Creates log4j2-logging-backed loggers You can use the same to explicit tell the framework which implementation to use and don't depend on class discovery:

   -Dxwork.loggerFactory=com.opensymphony.xwork2.util.logging.log4j2.Log4j2LoggerFactory
 


Constructor Summary
Log4j2LoggerFactory()
           
 
Method Summary
protected  Logger getLoggerImpl(Class<?> cls)
           
protected  Logger getLoggerImpl(String name)
           
 
Methods inherited from class com.opensymphony.xwork2.util.logging.LoggerFactory
getLogger, getLogger, getLoggerFactory, setLoggerFactory
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

Log4j2LoggerFactory

public Log4j2LoggerFactory()
Method Detail

getLoggerImpl

protected Logger getLoggerImpl(Class<?> cls)
Specified by:
getLoggerImpl in class LoggerFactory

getLoggerImpl

protected Logger getLoggerImpl(String name)
Specified by:
getLoggerImpl in class LoggerFactory


Copyright © 2000–2017 Apache Software Foundation. All rights reserved.