org.owasp.esapi.reference
Class Log4JLoggerFactory

java.lang.Object
  extended by org.owasp.esapi.reference.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
Log4JLoggerFactory()
          This constructor must be public so it can be accessed from within log4j
 
Method Summary
 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


Copyright © 2011 The Open Web Application Security Project (OWASP). All Rights Reserved.