org.owasp.esapi.reference
Class JavaLogFactory

java.lang.Object
  extended byorg.owasp.esapi.reference.JavaLogFactory
All Implemented Interfaces:
LogFactory

public class JavaLogFactory
extends java.lang.Object
implements LogFactory

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.

Since:
June 1, 2007
Author:
Jeff Williams (jeff.williams .at. aspectsecurity.com) Aspect Security
See Also:
Logger

Constructor Summary
JavaLogFactory(java.lang.String applicationName)
           
 
Method Summary
 Logger getLogger(java.lang.Class clazz)
           
 Logger getLogger(java.lang.String name)
           
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

JavaLogFactory

public JavaLogFactory(java.lang.String applicationName)
Method Detail

getLogger

public Logger getLogger(java.lang.Class clazz)
Specified by:
getLogger in interface LogFactory

getLogger

public Logger getLogger(java.lang.String name)
Specified by:
getLogger in interface LogFactory