I enable the log by setting "IdentityModelEventSource.ShowPII = true" in my app hosted in IIS. It works fine if I publish the app - the log file will be created/update