public class OMRSAuditLog extends AuditLog
AuditLog.AuditLogActivityauditLogActivity, childAuditLogs| Constructor and Description |
|---|
OMRSAuditLog(OMRSAuditLogDestination omrsDestination,
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 omrsDestination,
OMRSAuditingComponent omrsReportingComponent)
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
|
OMRSAuditLogReport |
getFullReport()
Return a full report for the OMRS Audit log.
|
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.
|
createNewAuditLog, getOriginatorProperties, getReport, logException, logException, logException, logMessage, logMessage, logMessagegetFormattedMessagepublic OMRSAuditLog(OMRSAuditLogDestination omrsDestination, int componentId, String componentName, String componentDescription, String componentWikiURL)
omrsDestination - 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 omrsDestination, OMRSAuditingComponent omrsReportingComponent)
omrsDestination - new logging destinationomrsReportingComponent - information about the component that will use this instance of the audit log.public OMRSAuditLog createNewAuditLog(int componentId, String componentName, String componentDescription, String componentWikiURL)
createNewAuditLog in class AuditLogcomponentId - 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.public OMRSAuditLogReport getFullReport()
Copyright © 2018–2021 LF AI & Data Foundation. All rights reserved.