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) |
AuditLogRecord(Level level,
String name,
String username,
String operationPath,
String operationsMethod,
String session,
Map<String,String[]> parameterMap,
int responseStatus,
String msg) |
Modifier and Type | Method and Description |
---|---|
AuditDetails |
getAuditDetails() |
Exception |
getException() |
String |
getFilter() |
String |
getOperationMethod() |
String |
getOperationPath() |
Map<String,String[]> |
getParameterMap() |
String |
getPrivilege() |
String |
getResponseStatus() |
String |
getSessionId() |
String |
getUsername() |
void |
setAuditDetails(AuditDetails auditDetails) |
void |
setException(Exception exception) |
void |
setFilter(String filter) |
void |
setOperationMethod(String operationMethod) |
void |
setOperationPath(String operationPath) |
void |
setParameterMap(Map<String,String[]> parameterMap) |
void |
setPrivilege(String privilege) |
void |
setResponseStatus(String responseStatus) |
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 AuditLogRecord(Level level, String name, String msg)
level
- - a logging level valuename
- - a logger namemsg
- - the raw non-localized logging messagepublic void setResponseStatus(String responseStatus)
public String getResponseStatus()
public void setOperationMethod(String operationMethod)
public String getOperationMethod()
public String getOperationPath()
public void setOperationPath(String operationPath)
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.