Class Log4JLoggerFactory

  • All Implemented Interfaces:
    org.apache.log4j.spi.LoggerFactory

    public class Log4JLoggerFactory
    extends java.lang.Object
    implements org.apache.log4j.spi.LoggerFactory
    Implementation of the LoggerFactory interface. This implementation has been overridden to return instances of org.owasp.esapi.reference.Log4JLogger.
    Since:
    October 15, 2010
    Author:
    August Detlefsen (augustd at codemagi dot com) CodeMagi, Inc.
    See Also:
    Log4JLogFactory, Log4JLogger
    • Constructor Summary

      Constructors 
      Constructor Description
      Log4JLoggerFactory()
      This constructor must be public so it can be accessed from within log4j
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      org.apache.log4j.Logger makeNewLoggerInstance​(java.lang.String name)
      Overridden to return instances of org.owasp.esapi.reference.Log4JLogger.
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • Log4JLoggerFactory

        public Log4JLoggerFactory()
        This constructor must be public so it can be accessed from within log4j
    • Method Detail

      • makeNewLoggerInstance

        public org.apache.log4j.Logger makeNewLoggerInstance​(java.lang.String name)
        Overridden to return instances of org.owasp.esapi.reference.Log4JLogger.
        Specified by:
        makeNewLoggerInstance in interface org.apache.log4j.spi.LoggerFactory
        Parameters:
        name - The class name to return a logger for.
        Returns:
        org.owasp.esapi.reference.Log4JLogger