com.gigaspaces.security.audit
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:
- Serialized Form
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 |
AuditLogRecord
public AuditLogRecord(Level level,
String name,
String msg)
- Parameters:
level
- - a logging level valuename
- - a logger namemsg
- - the raw non-localized logging message
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
-
Copyright © GigaSpaces.