public class Log4JLogFactory extends Object implements LogFactory
log4j.loggerFactory=org.owasp.esapi.reference.Log4JLoggerFactory
or log4j.xml:
<loggerFactory class="org.owasp.esapi.reference.Log4JLoggerFactory"/>
LogFactory,
Log4JLogger,
Log4JLoggerFactory| Modifier | Constructor and Description |
|---|---|
protected |
Log4JLogFactory() |
| Modifier and Type | Method and Description |
|---|---|
static LogFactory |
getInstance() |
Logger |
getLogger(Class clazz)
Gets the logger associated with the specified class.
|
Logger |
getLogger(String moduleName)
Gets the logger associated with the specified module name.
|
public static LogFactory getInstance()
public Logger getLogger(Class clazz)
getLogger in interface LogFactoryclazz - The name of the class requesting the logger.public Logger getLogger(String moduleName)
getLogger in interface LogFactorymoduleName - The name of the module requesting the logger.Copyright © 2016 The Open Web Application Security Project (OWASP). All rights reserved.