public class OMRSAuditLog extends Object
| Constructor and Description |
|---|
OMRSAuditLog(OMRSAuditLogDestination destination,
int componentId,
String componentName,
String componentDescription,
String componentWikiURL)
Typical constructor: each component using the Audit log will create their own OMRSAuditLog instance and
will push log records to it.
|
OMRSAuditLog(OMRSAuditLogDestination destination,
OMRSAuditingComponent reportingComponent)
Constructor used to create the root audit log for OMRS
|
| Modifier and Type | Method and Description |
|---|---|
OMRSAuditLog |
createNewAuditLog(int componentId,
String componentName,
String componentDescription,
String componentWikiURL)
Clone request is used to create an audit log for a component outside of OMRS.
|
OMRSAuditLog |
createNewAuditLog(OMRSAuditingComponent reportingComponent)
Constructor used to create the root audit log for OMRS
|
void |
logException(String actionDescription,
String logMessageId,
OMRSAuditLogRecordSeverity severity,
String logMessage,
String additionalInformation,
String systemAction,
String userAction,
Throwable caughtException)
Log details of an unexpected exception detected by the open metadata modules.
|
void |
logRecord(String actionDescription,
String logMessageId,
OMRSAuditLogRecordSeverity severity,
String logMessage,
String additionalInformation,
String systemAction,
String userAction)
Log an audit log record for an event, decision, error, or exception detected by the open
metadata services.
|
public OMRSAuditLog(OMRSAuditLogDestination destination, int componentId, String componentName, String componentDescription, String componentWikiURL)
destination - destination for the log recordscomponentId - numerical identifier for the component.componentName - display name for the component.componentDescription - description of the component.componentWikiURL - link to more information.public OMRSAuditLog(OMRSAuditLogDestination destination, OMRSAuditingComponent reportingComponent)
destination - new logging destinationreportingComponent - information about the component that will use this instance of the audit log.public OMRSAuditLog createNewAuditLog(int componentId, String componentName, String componentDescription, String componentWikiURL)
componentId - numerical identifier for the component.componentName - display name for the component.componentDescription - description of the component.componentWikiURL - link to more information.public OMRSAuditLog createNewAuditLog(OMRSAuditingComponent reportingComponent)
reportingComponent - information about the component that will use this instance of the audit log.public void logRecord(String actionDescription, String logMessageId, OMRSAuditLogRecordSeverity severity, String logMessage, String additionalInformation, String systemAction, String userAction)
actionDescription - description of the activity creating the audit log recordlogMessageId - id for the audit log recordseverity - is this an event, decision, error or exception?logMessage - description of the audit log record including specific resources involvedadditionalInformation - additional data to help resolve issues of verify behaviorsystemAction - the related action taken by the OMRS.userAction - details of any action that an administrator needs to take.public void logException(String actionDescription, String logMessageId, OMRSAuditLogRecordSeverity severity, String logMessage, String additionalInformation, String systemAction, String userAction, Throwable caughtException)
actionDescription - description of the activity in progress when the error occurredlogMessageId - id for the type of exception caughtseverity - severity of the errorlogMessage - description of the exception including specific resources involvedadditionalInformation - additional data to help resolve issues of verify behaviorsystemAction - the action taken by the OMRS in response to the error.userAction - details of any action that an administrator needs to take.caughtException - the original exception.Copyright © 2018–2020 ODPi. All rights reserved.