What is the correct way of debugging connector rules

Hi All,

Were you able to print the custom logs, can someone please share the sample code to print the logs.

Thanks