Hi @nononame2021 ,
It is done automatically, i.e. logging, including SSIS Task name.
You just need to know your execution operation_id value.
Please see how get that info below.
It contains lots of useful info: project name, package name, event name, message, etc.
One column - message_source_name - is a SSIS Task name.
SQL
USE SSISDB;
GO
SELECT TOP(1000) *
FROM SSISDB.CATALOG.EVENT_MESSAGES
WHERE operation_id = 3673
--AND package_name = 'RESTAPI_Calls.dtsx'
--AND [message] LIKE '%:Information:%'
--AND [message] LIKE '%:Error:%'
--AND [message] LIKE '%Fetch%'
--AND [message] LIKE '%"Oracle Destination" wrote%'
--AND event_name IN ('OnError', 'OnWarning')
ORDER BY message_time DESC;