Hi @manu
Welcome to Microsoft Q&A! Thanks for posting the question.
As per your requirement looks like you want to log your custom message whenever the logic app is triggered. If this is the case then you can leverage the Send Data action for Azure Log Analytics Data Collector to send your customize message to log analytics.
If you want to Set up Azure Monitor logs and collect diagnostics data for Azure Logic Apps then please refer to this document.