<p>My application - a windows service - stops working when logging errors to TraceTarget. </p>
<p>The Write method in TraceTarget calls Trace.Fail which causes the application to stop an and popup a retry/abort/ignore dialog.</p>
<p> </p>
<p>Trace.cs</p>
<p>if (logEvent.Level >= LogLevel.Error)</p>
<p>{</p>
<p> Trace.Fail(CompiledLayout.GetFormattedMessage(logEvent));</p>
<p>}</p>
<p>else</p>
<p>{</p>
<p> Trace.WriteLine(CompiledLayout.GetFormattedMessage(logEvent));</p>
<p>}</p>
Comments: ** Comment from web user: thnk2wn **
<p>The Write method in TraceTarget calls Trace.Fail which causes the application to stop an and popup a retry/abort/ignore dialog.</p>
<p> </p>
<p>Trace.cs</p>
<p>if (logEvent.Level >= LogLevel.Error)</p>
<p>{</p>
<p> Trace.Fail(CompiledLayout.GetFormattedMessage(logEvent));</p>
<p>}</p>
<p>else</p>
<p>{</p>
<p> Trace.WriteLine(CompiledLayout.GetFormattedMessage(logEvent));</p>
<p>}</p>
Comments: ** Comment from web user: thnk2wn **
Any word on when this might be fixed in the NuGet package?