|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.owasp.esapi.reference.JavaLogFactory
public class JavaLogFactory
Reference implementation of the LogFactory and Logger interfaces. This implementation uses the Java logging package, and marks each log message with the currently logged in user and the word "SECURITY" for security related events. See the JavaLogFactory.JavaLogger Javadocs for the details on the JavaLogger reference implementation.
LogFactory
,
JavaLogFactory.JavaLogger
Nested Class Summary | |
---|---|
static class |
JavaLogFactory.JavaLoggerLevel
A custom logging level defined between Level.SEVERE and Level.WARNING in logger. |
Constructor Summary | |
---|---|
JavaLogFactory()
Null argument constructor for this implementation of the LogFactory interface needed for dynamic configuration. |
Method Summary | |
---|---|
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. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public JavaLogFactory()
Method Detail |
---|
public static LogFactory getInstance()
public Logger getLogger(Class clazz)
getLogger
in interface LogFactory
clazz
- The name of the class requesting the logger.
public Logger getLogger(String moduleName)
getLogger
in interface LogFactory
moduleName
- The name of the module requesting the logger.
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |