I'm using a EventLogListener in my project. It works fine during Debug mode and it writes to the eventlog. But when using release mode it suddenly stops..
How should I use this in a proper way?
<trace autoflush="true" indentsize="2">
<listeners>
<!--<remove name="Default" />-->
<add name="EventLogListener" type="System.Diagnostics.EventLogTraceListener" initializeData="myproj" />
</listeners>
</trace>
<switches>
<!--
"0" Off
"1" Error messages
"2" Warning, gives Error and Warning messages
"3" Information, gives Error, Warning and Information messages
"4" Verbose, gives Error, Warning, Information and Verbose messages
-->
<add name="myproj" value="4" />
</switches>