GigaSpaces XAP 9.7.2 API

com.gigaspaces.security.audit
Class AuditLogRecord

java.lang.Object
  extended by java.util.logging.LogRecord
      extended by 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:
Serialized Form

Constructor Summary
AuditLogRecord(Level level, String name, String msg)
           
 
Method Summary
 AuditDetails getAuditDetails()
           
 Exception getException()
           
 String getFilter()
           
 String getPrivilege()
           
 String getSessionId()
           
 String getUsername()
           
 void setAuditDetails(AuditDetails auditDetails)
           
 void setException(Exception exception)
           
 void setFilter(String filter)
           
 void setPrivilege(String privilege)
           
 void setSessionId(String sessionId)
           
 void setUsername(String username)
           
 
Methods inherited from class java.util.logging.LogRecord
getLevel, getLoggerName, getMessage, getMillis, getParameters, getResourceBundle, getResourceBundleName, getSequenceNumber, getSourceClassName, getSourceMethodName, getThreadID, getThrown, setLevel, setLoggerName, setMessage, setMillis, setParameters, setResourceBundle, setResourceBundleName, setSequenceNumber, setSourceClassName, setSourceMethodName, setThreadID, setThrown
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

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
Method Detail

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 -

GigaSpaces XAP 9.7.2 API

Copyright © GigaSpaces.