[wix-users] Session.Log replacement of []

Benny Bürger buerger at simba.de
Mon Jun 28 04:53:09 PDT 2021


Hi,

I have a custom action that is calling session.Log
Because I want to know the exact time, I wrote an extension method:

        internal static void LogWithTime(this Session session, string message) => session.Log($"      ***** [{DateTime.Now}] {message}");

Funny enough, after more than two years of usage I really needed to know the time:
The output of each log was: "    ******   messageText".
The text [DateTime...] has been replaced with a space.
Is there some specific behaviour, that [] is replaced with something?

Best regards,
Benny


More information about the wix-users mailing list