Class LoggingHandler
java.lang.Object
org.odpi.openmetadata.accessservices.assetconsumer.handlers.LoggingHandler
- All Implemented Interfaces:
AssetConsumerLoggingInterface
LoggingHandler manages the logging of audit records for the asset.
-
Constructor Summary
ConstructorDescriptionLoggingHandler
(AuditLog auditLog) Construct the audit log handler with a link to the property server's connector and this access service's official name. -
Method Summary
-
Constructor Details
-
LoggingHandler
Construct the audit log handler with a link to the property server's connector and this access service's official name.- Parameters:
auditLog
- connector to the property server.
-
-
Method Details
-
addLogMessageToAsset
public void addLogMessageToAsset(String userId, String assetGUID, String connectorInstanceId, String connectionName, String connectorType, String contextId, String message) Creates an Audit log record for the asset. This log record is stored in the Asset's Audit Log.- Specified by:
addLogMessageToAsset
in interfaceAssetConsumerLoggingInterface
- Parameters:
userId
- String - userId of user making request.assetGUID
- String - unique id for the asset.connectorInstanceId
- String - (optional) id of connector in use (if any).connectionName
- String - (optional) name of the connection (extracted from the connector).connectorType
- String - (optional) type of connector in use (if any).contextId
- String - (optional) function name, or processId of the activity that the caller is performing.message
- log record content.
-