public class OMRSAuditLogDestination extends Object
| Constructor and Description |
|---|
OMRSAuditLogDestination(List<OMRSAuditLogStore> auditLogStores) |
OMRSAuditLogDestination(String localServerName,
String localServerType,
String localOrganizationName,
List<OMRSAuditLogStore> auditLogStores)
Initialize the static values used in all log records.
|
| Modifier and Type | Method and Description |
|---|---|
void |
logException(OMRSAuditLogReportingComponent reportingComponent,
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(OMRSAuditLogReportingComponent reportingComponent,
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.
|
void |
setLocalMetadataCollectionId(String localMetadataCollectionId)
Set up the local metadata collection Id.
|
public OMRSAuditLogDestination(List<OMRSAuditLogStore> auditLogStores)
public OMRSAuditLogDestination(String localServerName, String localServerType, String localOrganizationName, List<OMRSAuditLogStore> auditLogStores)
localServerName - name of the local serverlocalServerType - type of the local serverlocalOrganizationName - name of the organization that owns the local serverauditLogStores - list of destinations for the audit log recordspublic void setLocalMetadataCollectionId(String localMetadataCollectionId)
localMetadataCollectionId - String unique identifier for the metadata collectionpublic void logRecord(OMRSAuditLogReportingComponent reportingComponent, String actionDescription, String logMessageId, OMRSAuditLogRecordSeverity severity, String logMessage, String additionalInformation, String systemAction, String userAction)
reportingComponent - component that sent the log recordactionDescription - 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(OMRSAuditLogReportingComponent reportingComponent, String actionDescription, String logMessageId, OMRSAuditLogRecordSeverity severity, String logMessage, String additionalInformation, String systemAction, String userAction, Throwable caughtException)
reportingComponent - component that sent the log recordactionDescription - 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.