title: Wix CustomAction session.Log not working
body: <p>I'm using Wix to setup a Windows Installer .msi file.  I have a CustomAction that sets up a ScheduledTask, and in the CustomAction, I've put in some session.Log statements.</p>
  
  <p>If I build everything in debug mode, the session.Log statements seem to work, but when I build in Release mode, it seems to no longer log.  Is this correct?  Or are there other scenarios where session.Log will not work?  Is there any way to workaround any of these scenarios, so that session.Log always works?</p>
  
  <p>Edit:  The CustomAction is written in C# (i.e. managed)</p>