Quantcast
Channel: NLog - Advanced .NET Logging
Viewing all articles
Browse latest Browse all 60

Commented Issue: TraceTarget blocks application when logging error events - Trace.Fail [2599]

$
0
0
<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>&nbsp;</p>
<p>Trace.cs</p>
<p>if (logEvent.Level &gt;= 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?


Viewing all articles
Browse latest Browse all 60

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>