public class AuditLogRecord extends LogRecord
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.
Constructor and Description |
---|
AuditLogRecord(Level level,
String name,
String msg) |
Modifier and Type | Method and Description |
---|---|
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) |
getLevel, getLoggerName, getMessage, getMillis, getParameters, getResourceBundle, getResourceBundleName, getSequenceNumber, getSourceClassName, getSourceMethodName, getThreadID, getThrown, setLevel, setLoggerName, setMessage, setMillis, setParameters, setResourceBundle, setResourceBundleName, setSequenceNumber, setSourceClassName, setSourceMethodName, setThreadID, setThrown
public AuditDetails getAuditDetails()
public void setAuditDetails(AuditDetails auditDetails)
auditDetails
- the auditDetails to setpublic String getUsername()
public void setUsername(String username)
username
- the username to setpublic String getSessionId()
public void setSessionId(String sessionId)
sessionId
- the sessionId to setpublic String getPrivilege()
public void setPrivilege(String privilege)
privilege
- the privilege to setpublic String getFilter()
public void setFilter(String filter)
filter
- the filter to setpublic Exception getException()
public void setException(Exception exception)
exception
- Copyright © GigaSpaces.