How to Use LogMessage() in the Custom Code Activity

If we use Core.Activites and workfloe invoker, its working for all other actovoties like "MessageBox and Writeline …etc buts not for LogMessage().

Please help

@Ramakrishna_A
Welcome to the forum

is the issue about String cannot be converted into System.Activities.InArgument(Of Object)?