I created a C# custom action which works fine. However, I want to record some data in the log file. I tried 2 methods:
session.Log("What I want to show in the log file");
session.Message(InstallMessage.Info, new Record { FormatString = "What I want to show in the log file" });
None of these work. I can see my C# function called from the log file but not my string. What am I doing wrong?
Even session.Message(InstallMessage.Warning, new Record { FormatString = "What I want to show in the log file" }); is not working.