How to log inside "invoke code" activity thread

Hi forum team.

I was trying to find how to log messages from invoke codes and I came across this thread.
Unfortunately, I believe this no longer works on newer versions of UiPath. Could you provide the current solution or reopen the following thread?

Best regards,
Pedro.

A post was merged into an existing topic: How to log inside “Invoke code” activity?