Class AuditLogRecord

java.lang.Object
java.util.logging.LogRecord
com.gigaspaces.security.audit.AuditLogRecord
All Implemented Interfaces:
Serializable

public class AuditLogRecord extends LogRecord
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 Details

    • AuditLogRecord

      public AuditLogRecord(Level level, String name, String msg)
      Parameters:
      level - - a logging level value
      name - - a logger name
      msg - - the raw non-localized logging message
    • AuditLogRecord

      public AuditLogRecord(Level level, String name, String username, String operationPath, String operationsMethod, String session, Map<String,String[]> parameterMap, int responseStatus, String msg)
  • Method Details

    • setResponseStatus

      public void setResponseStatus(String responseStatus)
    • getResponseStatus

      public String getResponseStatus()
    • setParameterMap

      public void setParameterMap(Map<String,String[]> parameterMap)
    • getParameterMap

      public Map<String,String[]> getParameterMap()
    • setOperationMethod

      public void setOperationMethod(String operationMethod)
    • getOperationMethod

      public String getOperationMethod()
    • getOperationPath

      public String getOperationPath()
    • setOperationPath

      public void setOperationPath(String operationPath)
    • getAuditDetails

      public AuditDetails getAuditDetails()
      Returns:
      the auditDetails (may be null)
    • setAuditDetails

      public void setAuditDetails(AuditDetails auditDetails)
      Parameters:
      auditDetails - the auditDetails to set
    • getUsername

      public String getUsername()
      Returns:
      the username (may be null)
    • setUsername

      public void setUsername(String username)
      Parameters:
      username - the username to set
    • getSessionId

      public String getSessionId()
      Returns:
      the sessionId (may be null)
    • setSessionId

      public void setSessionId(String sessionId)
      Parameters:
      sessionId - the sessionId to set
    • getPrivilege

      public String getPrivilege()
      Returns:
      the privilege (may be null)
    • setPrivilege

      public void setPrivilege(String privilege)
      Parameters:
      privilege - the privilege to set
    • getFilter

      public String getFilter()
      Returns:
      the filter (may be null)
    • setFilter

      public void setFilter(String filter)
      Parameters:
      filter - the filter to set
    • getException

      public Exception getException()
      Returns:
      the exception (may be null)
    • setException

      public void setException(Exception exception)
      Parameters:
      exception -