justTryingToCode
Programmer
Hi all experts,
I am currently using the Microsoft.Practices.EnterpriseLibrary.ExceptionHandling along with the logging component within a web application.
All was working great, catastrophic errors were logging to the Application event log using the web.config listeners. I decided that I wanted to try giving each new app its own event log. While building a template web.config file I reference Log="Custom Application". Now when I try and change my original applications event log destination it will not write to this event log.I switch it back to "Application" it logs again. here is the web.config entry:
<add source="Gateway Error Logging" formatter="Text Formatter"
log="Application" machineName="" listenerDataType="Microsoft.Practices.EnterpriseLibrary.Logging.Configuration.FormattedEventLogTraceListenerData, Microsoft.Practices.EnterpriseLibrary.Logging, Version=3.1.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a"
traceOutputOptions="None" type="Microsoft.Practices.EnterpriseLibrary.Logging.TraceListeners.FormattedEventLogTraceListener, Microsoft.Practices.EnterpriseLibrary.Logging, Version=3.1.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a"
name="EventLog_Errors" />
I used this same code for another web app which does log to "Custom Application" using the same code, but if I change it to try and log to "Application" it does not. I have reset IIS, restarted my server and made sure ASP.NET permissions exist
Has anyone else had this issue, I have been pulling my hair out trying to figure this out.
Thanks in advance...
I am currently using the Microsoft.Practices.EnterpriseLibrary.ExceptionHandling along with the logging component within a web application.
All was working great, catastrophic errors were logging to the Application event log using the web.config listeners. I decided that I wanted to try giving each new app its own event log. While building a template web.config file I reference Log="Custom Application". Now when I try and change my original applications event log destination it will not write to this event log.I switch it back to "Application" it logs again. here is the web.config entry:
<add source="Gateway Error Logging" formatter="Text Formatter"
log="Application" machineName="" listenerDataType="Microsoft.Practices.EnterpriseLibrary.Logging.Configuration.FormattedEventLogTraceListenerData, Microsoft.Practices.EnterpriseLibrary.Logging, Version=3.1.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a"
traceOutputOptions="None" type="Microsoft.Practices.EnterpriseLibrary.Logging.TraceListeners.FormattedEventLogTraceListener, Microsoft.Practices.EnterpriseLibrary.Logging, Version=3.1.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a"
name="EventLog_Errors" />
I used this same code for another web app which does log to "Custom Application" using the same code, but if I change it to try and log to "Application" it does not. I have reset IIS, restarted my server and made sure ASP.NET permissions exist
Has anyone else had this issue, I have been pulling my hair out trying to figure this out.
Thanks in advance...