Logger.EventType
ALL, DEBUG, ERROR, EVENT_FAILURE, EVENT_SUCCESS, EVENT_UNSPECIFIED, FATAL, INFO, OFF, SECURITY_AUDIT, SECURITY_FAILURE, SECURITY_SUCCESS, TRACE, WARNING
Constructor and Description |
---|
JavaLogger(Logger JavaLogger,
JavaLogBridge bridge,
int defaultEsapiLevel)
Constructs a new instance.
|
Modifier and Type | Method and Description |
---|---|
void |
always(Logger.EventType type,
String message)
Log an event regardless of what logging level is enabled.
|
void |
always(Logger.EventType type,
String message,
Throwable throwable)
Log an event regardless of what logging level is enabled
and also record the stack trace associated with the event.
|
void |
debug(Logger.EventType type,
String message)
Log a debug level security event if 'debug' level logging is enabled.
|
void |
debug(Logger.EventType type,
String message,
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,
String message)
Log an error level security event if 'error' level logging is enabled.
|
void |
error(Logger.EventType type,
String message,
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,
String message)
Log a fatal event if 'fatal' level logging is enabled.
|
void |
fatal(Logger.EventType type,
String message,
Throwable throwable)
Log a fatal level security event if 'fatal' level logging is enabled
and also record the stack trace associated with the event.
|
int |
getESAPILevel()
Retrieve the current ESAPI logging level for this logger.
|
void |
info(Logger.EventType type,
String message)
Log an info level security event if 'info' level logging is enabled.
|
void |
info(Logger.EventType type,
String message,
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 ESAPI logging severity level.
|
void |
trace(Logger.EventType type,
String message)
Log a trace level security event if 'trace' level logging is enabled.
|
void |
trace(Logger.EventType type,
String message,
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,
String message)
Log a warning level security event if 'warning' level logging is enabled.
|
void |
warning(Logger.EventType type,
String message,
Throwable throwable)
Log a warning level security event if 'warning' level logging is enabled
and also record the stack trace associated with the event.
|
public JavaLogger(Logger JavaLogger, JavaLogBridge bridge, int defaultEsapiLevel)
JavaLogger
- Delegate Java logger.bridge
- Translator for ESAPI -> Java logging events.defaultEsapiLevel
- Maximum ESAPI log level events to propagate.public void always(Logger.EventType type, String message)
Logger
public void always(Logger.EventType type, String message, Throwable throwable)
Logger
public void trace(Logger.EventType type, String message)
Logger
public void trace(Logger.EventType type, String message, Throwable throwable)
Logger
public void debug(Logger.EventType type, String message)
Logger
public void debug(Logger.EventType type, String message, Throwable throwable)
Logger
public void info(Logger.EventType type, String message)
Logger
public void info(Logger.EventType type, String message, Throwable throwable)
Logger
public void warning(Logger.EventType type, String message)
Logger
public void warning(Logger.EventType type, String message, Throwable throwable)
Logger
public void error(Logger.EventType type, String message)
Logger
public void error(Logger.EventType type, String message, Throwable throwable)
Logger
public void fatal(Logger.EventType type, String message)
Logger
public void fatal(Logger.EventType type, String message, Throwable throwable)
Logger
public int getESAPILevel()
Logger
Log4JLogger
for an explanation of
why this method is not simply called getLevel()
.getESAPILevel
in interface Logger
public boolean isTraceEnabled()
Logger
isTraceEnabled
in interface Logger
public boolean isDebugEnabled()
Logger
isDebugEnabled
in interface Logger
public boolean isInfoEnabled()
Logger
isInfoEnabled
in interface Logger
public boolean isWarningEnabled()
Logger
isWarningEnabled
in interface Logger
public boolean isErrorEnabled()
Logger
isErrorEnabled
in interface Logger
public boolean isFatalEnabled()
Logger
isFatalEnabled
in interface Logger
public void setLevel(int level)
Logger
Copyright © 2022 The Open Web Application Security Project (OWASP). All rights reserved.