How to log inside "Invoke code" activity?

Thank you for your reply. I have been using Console.WriteLine method so far but the problem with this is that log messages don’t appear in Orchestrator even though I specify the log level as Trace.