I need to keep a log of customer attributes value changes. For every update on the user's account information, both from admin and frontend, I'm inserting a row in a flat log table with the old and the new value of every customer attribute that was changed. For this purpose I've created a custom module and implemented a pretty standard CRUD functionality to persist and manage all log entries. The next step is to find the appropriate location to capture customer attribute value update to hook my save logic . So far I've identified some potential locations but I'm not 100% sure it's they are the right ones:
\Magento\Customer\Model\Customer::updateData \Magento\Customer\Model\Plugin\CustomerRepository\TransactionWrapper::aroundSave (this is already a plugin)
Am I on the right path?