Package com.gigaspaces.security.audit
Class AuditLogRecord
java.lang.Object
java.util.logging.LogRecord
com.gigaspaces.security.audit.AuditLogRecord
- All Implemented Interfaces:
Serializable
The java logging facility formats a
LogRecord before it is logged. A custom Formatter can extract the details from the AuditLogRecord. By default the record has a
printable message LogRecord.getMessage() which prints all the details. Note that the implementation must consider the null contract detailed for each getter method.
- Since:
- 7.0.1
- Author:
- Moran Avigdor
- See Also:
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidsetAuditDetails(AuditDetails auditDetails) voidsetException(Exception exception) voidvoidsetOperationMethod(String operationMethod) voidsetOperationPath(String operationPath) voidsetParameterMap(Map<String, String[]> parameterMap) voidsetPrivilege(String privilege) voidsetResponseStatus(String responseStatus) voidsetSessionId(String sessionId) voidsetUsername(String username) Methods inherited from class java.util.logging.LogRecord
getInstant, getLevel, getLoggerName, getLongThreadID, getMessage, getMillis, getParameters, getResourceBundle, getResourceBundleName, getSequenceNumber, getSourceClassName, getSourceMethodName, getThreadID, getThrown, setInstant, setLevel, setLoggerName, setLongThreadID, setMessage, setMillis, setParameters, setResourceBundle, setResourceBundleName, setSequenceNumber, setSourceClassName, setSourceMethodName, setThreadID, setThrown
-
Constructor Details
-
AuditLogRecord
- Parameters:
level- - a logging level valuename- - a logger namemsg- - the raw non-localized logging message
-
AuditLogRecord
-
-
Method Details
-
setResponseStatus
-
getResponseStatus
-
setParameterMap
-
getParameterMap
-
setOperationMethod
-
getOperationMethod
-
getOperationPath
-
setOperationPath
-
getAuditDetails
- Returns:
- the auditDetails (may be null)
-
setAuditDetails
- Parameters:
auditDetails- the auditDetails to set
-
getUsername
- Returns:
- the username (may be null)
-
setUsername
- Parameters:
username- the username to set
-
getSessionId
- Returns:
- the sessionId (may be null)
-
setSessionId
- Parameters:
sessionId- the sessionId to set
-
getPrivilege
- Returns:
- the privilege (may be null)
-
setPrivilege
- Parameters:
privilege- the privilege to set
-
getFilter
- Returns:
- the filter (may be null)
-
setFilter
- Parameters:
filter- the filter to set
-
getException
- Returns:
- the exception (may be null)
-
setException
- Parameters:
exception-
-