|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.owasp.esapi.reference.Log4JLogFactory.Log4JLogger
protected static class Log4JLogFactory.Log4JLogger
Reference implementation of the Logger interface. It implements most of the recommendations defined in the Logger interface description. It does not filter out any sensitive data specific to the current application or organization, such as credit cards, social security numbers, etc.
LogFactory
Nested Class Summary |
---|
Nested classes/interfaces inherited from interface org.owasp.esapi.Logger |
---|
Logger.EventType |
Field Summary |
---|
Fields inherited from interface org.owasp.esapi.Logger |
---|
ALL, DEBUG, ERROR, EVENT_FAILURE, EVENT_SUCCESS, FATAL, INFO, OFF, SECURITY_FAILURE, SECURITY_SUCCESS, TRACE, WARNING |
Constructor Summary | |
---|---|
protected |
Log4JLogFactory.Log4JLogger(java.lang.String moduleName)
Public constructor should only ever be called via the appropriate LogFactory |
Method Summary | |
---|---|
void |
debug(Logger.EventType type,
java.lang.String message)
Log a debug level security event if 'debug' level logging is enabled. |
void |
debug(Logger.EventType type,
java.lang.String message,
java.lang.Throwable throwable)
Log a debug level security event if 'debug' level logging is enabled and also record the stack trace associated with the event. |
void |
error(Logger.EventType type,
java.lang.String message)
Log an error level security event if 'error' level logging is enabled. |
void |
error(Logger.EventType type,
java.lang.String message,
java.lang.Throwable throwable)
Log an error level security event if 'error' level logging is enabled and also record the stack trace associated with the event. |
void |
fatal(Logger.EventType type,
java.lang.String message)
Log a fatal event if 'fatal' level logging is enabled. |
void |
fatal(Logger.EventType type,
java.lang.String message,
java.lang.Throwable throwable)
Log a fatal level security event if 'fatal' level logging is enabled and also record the stack trace associated with the event. |
java.lang.String |
getUserInfo()
|
void |
info(Logger.EventType type,
java.lang.String message)
Log an info level security event if 'info' level logging is enabled. |
void |
info(Logger.EventType type,
java.lang.String message,
java.lang.Throwable throwable)
Log an info level security event if 'info' level logging is enabled and also record the stack trace associated with the event. |
boolean |
isDebugEnabled()
Allows the caller to determine if messages logged at this level will be discarded, to avoid performing expensive processing. |
boolean |
isErrorEnabled()
Allows the caller to determine if messages logged at this level will be discarded, to avoid performing expensive processing. |
boolean |
isFatalEnabled()
Allows the caller to determine if messages logged at this level will be discarded, to avoid performing expensive processing. |
boolean |
isInfoEnabled()
Allows the caller to determine if messages logged at this level will be discarded, to avoid performing expensive processing. |
boolean |
isTraceEnabled()
Allows the caller to determine if messages logged at this level will be discarded, to avoid performing expensive processing. |
boolean |
isWarningEnabled()
Allows the caller to determine if messages logged at this level will be discarded, to avoid performing expensive processing. |
void |
setLevel(int level)
Dynamically set the logging severity level. |
void |
trace(Logger.EventType type,
java.lang.String message)
Log a trace level security event if 'trace' level logging is enabled. |
void |
trace(Logger.EventType type,
java.lang.String message,
java.lang.Throwable throwable)
Log a trace level security event if 'trace' level logging is enabled and also record the stack trace associated with the event. |
void |
warning(Logger.EventType type,
java.lang.String message)
Log a warning level security event if 'warning' level logging is enabled. |
void |
warning(Logger.EventType type,
java.lang.String message,
java.lang.Throwable throwable)
Log a warning level security event if 'warning' level logging is enabled and also record the stack trace associated with the event. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
protected Log4JLogFactory.Log4JLogger(java.lang.String moduleName)
moduleName
- the module nameMethod Detail |
---|
public void setLevel(int level)
setLevel
in interface Logger
level
- The level to set the logging level to.public void trace(Logger.EventType type, java.lang.String message, java.lang.Throwable throwable)
trace
in interface Logger
type
- the type of eventmessage
- the message to logthrowable
- the exception to be loggedpublic void trace(Logger.EventType type, java.lang.String message)
trace
in interface Logger
type
- the type of eventmessage
- the message to logpublic void debug(Logger.EventType type, java.lang.String message, java.lang.Throwable throwable)
debug
in interface Logger
type
- the type of eventmessage
- the message to logthrowable
- the exception to be loggedpublic void debug(Logger.EventType type, java.lang.String message)
debug
in interface Logger
type
- the type of eventmessage
- the message to logpublic void info(Logger.EventType type, java.lang.String message)
info
in interface Logger
type
- the type of eventmessage
- the message to logpublic void info(Logger.EventType type, java.lang.String message, java.lang.Throwable throwable)
info
in interface Logger
type
- the type of eventmessage
- the message to logthrowable
- the exception to be loggedpublic void warning(Logger.EventType type, java.lang.String message, java.lang.Throwable throwable)
warning
in interface Logger
type
- the type of eventmessage
- the message to logthrowable
- the exception to be loggedpublic void warning(Logger.EventType type, java.lang.String message)
warning
in interface Logger
type
- the type of eventmessage
- the message to logpublic void error(Logger.EventType type, java.lang.String message, java.lang.Throwable throwable)
error
in interface Logger
type
- the type of eventmessage
- the message to logthrowable
- the exception to be loggedpublic void error(Logger.EventType type, java.lang.String message)
error
in interface Logger
type
- the type of eventmessage
- the message to logpublic void fatal(Logger.EventType type, java.lang.String message, java.lang.Throwable throwable)
fatal
in interface Logger
type
- the type of eventmessage
- the message to logthrowable
- the exception to be loggedpublic void fatal(Logger.EventType type, java.lang.String message)
fatal
in interface Logger
type
- the type of eventmessage
- the message to logpublic boolean isDebugEnabled()
isDebugEnabled
in interface Logger
public boolean isErrorEnabled()
isErrorEnabled
in interface Logger
public boolean isFatalEnabled()
isFatalEnabled
in interface Logger
public boolean isInfoEnabled()
isInfoEnabled
in interface Logger
public boolean isTraceEnabled()
isTraceEnabled
in interface Logger
public boolean isWarningEnabled()
isWarningEnabled
in interface Logger
public java.lang.String getUserInfo()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |