|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
java.lang.Objectorg.owasp.esapi.Logger
Reference implementation of the ILogger interface. 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.
ILogger| Field Summary |
| Fields inherited from interface org.owasp.esapi.interfaces.ILogger |
PERFORMANCE, SECURITY, USABILITY |
| Constructor Summary | |
Logger(java.lang.String applicationName,
java.lang.String moduleName)
Public constructor should only ever be called via the appropriate LogFactory |
|
| Method Summary | |
void |
debug(java.lang.String type,
java.lang.String message)
Log debug. |
void |
debug(java.lang.String type,
java.lang.String message,
java.lang.Throwable throwable)
Log debug. |
void |
error(java.lang.String type,
java.lang.String message)
Log error. |
void |
error(java.lang.String type,
java.lang.String message,
java.lang.Throwable throwable)
Log error. |
void |
fatal(java.lang.String type,
java.lang.String message)
Log critical. |
void |
fatal(java.lang.String type,
java.lang.String message,
java.lang.Throwable throwable)
Log critical. |
void |
info(java.lang.String type,
java.lang.String message)
Log success. |
void |
info(java.lang.String type,
java.lang.String message,
java.lang.Throwable throwable)
Log success. |
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 |
logSpecial(java.lang.String message,
java.lang.Throwable throwable)
This special method doesn't include the current user's identity, and is only used during system initialization to prevent loops with the Authenticator. |
void |
trace(java.lang.String type,
java.lang.String message)
Log trace. |
void |
trace(java.lang.String type,
java.lang.String message,
java.lang.Throwable throwable)
Log trace. |
void |
warning(java.lang.String type,
java.lang.String message)
Log warning. |
void |
warning(java.lang.String type,
java.lang.String message,
java.lang.Throwable throwable)
Log warning. |
| Methods inherited from class java.lang.Object |
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
public Logger(java.lang.String applicationName,
java.lang.String moduleName)
applicationName - the application namemoduleName - the module name| Method Detail |
public void trace(java.lang.String type,
java.lang.String message,
java.lang.Throwable throwable)
ILogger
trace in interface ILoggertype - the typemessage - the messagethrowable - the throwable
public void trace(java.lang.String type,
java.lang.String message)
ILogger
trace in interface ILoggertype - the typemessage - the message
public void debug(java.lang.String type,
java.lang.String message,
java.lang.Throwable throwable)
ILogger
debug in interface ILoggertype - the typemessage - the messagethrowable - the throwable
public void debug(java.lang.String type,
java.lang.String message)
ILogger
debug in interface ILoggertype - the typemessage - the message
public void error(java.lang.String type,
java.lang.String message,
java.lang.Throwable throwable)
ILogger
error in interface ILoggertype - the typemessage - the messagethrowable - the throwable
public void error(java.lang.String type,
java.lang.String message)
ILogger
error in interface ILoggertype - the typemessage - the message
public void info(java.lang.String type,
java.lang.String message)
ILogger
info in interface ILoggertype - the typemessage - the message
public void info(java.lang.String type,
java.lang.String message,
java.lang.Throwable throwable)
ILogger
info in interface ILoggertype - the typemessage - the messagethrowable - the throwable
public void warning(java.lang.String type,
java.lang.String message,
java.lang.Throwable throwable)
ILogger
warning in interface ILoggertype - the typemessage - the messagethrowable - the throwable
public void warning(java.lang.String type,
java.lang.String message)
ILogger
warning in interface ILoggertype - the typemessage - the message
public void fatal(java.lang.String type,
java.lang.String message,
java.lang.Throwable throwable)
ILogger
fatal in interface ILoggertype - the typemessage - the messagethrowable - the throwable
public void fatal(java.lang.String type,
java.lang.String message)
ILogger
fatal in interface ILoggertype - the typemessage - the message
public void logSpecial(java.lang.String message,
java.lang.Throwable throwable)
message - throwable - public boolean isDebugEnabled()
ILogger
isDebugEnabled in interface ILoggerpublic boolean isErrorEnabled()
ILogger
isErrorEnabled in interface ILoggerpublic boolean isFatalEnabled()
ILogger
isFatalEnabled in interface ILoggerpublic boolean isInfoEnabled()
ILogger
isInfoEnabled in interface ILoggerpublic boolean isTraceEnabled()
ILogger
isTraceEnabled in interface ILoggerpublic boolean isWarningEnabled()
ILogger
isWarningEnabled in interface ILogger
|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||