-
Notifications
You must be signed in to change notification settings - Fork 1.4k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
CodePlex bug 2599 - TraceTarget blocks application when logging error events - Trace.Fail #2
Comments
ghost
self-assigned this
Sep 19, 2012
ghost
closed this as completed
Sep 19, 2012
ghost
mentioned this issue
Oct 6, 2012
304NotModified
added a commit
that referenced
this issue
Mar 1, 2015
Added DEBUG-Conditional trace and debug methods #2
kevindaub
added a commit
to kevindaub/NLog
that referenced
this issue
Aug 24, 2015
304NotModified
added a commit
that referenced
this issue
Nov 8, 2015
…modified-after-the-enumerator-was-instantiated Fix #2 ObjectGraphScanner.ScanProperties: Collection was modified
304NotModified
added a commit
that referenced
this issue
Feb 3, 2016
304NotModified
added a commit
that referenced
this issue
Apr 26, 2016
Fix filetarget: Thread was being aborted (#2)
This issue was closed.
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
My application - a windows service - stops working when logging errors to TraceTarget.
The Write method in TraceTarget calls Trace.Fail which causes the application to stop an and popup a retry/abort/ignore dialog.
Trace.cs
if (logEvent.Level >= LogLevel.Error)
{
Trace.Fail(CompiledLayout.GetFormattedMessage(logEvent));
}
else
{
Trace.WriteLine(CompiledLayout.GetFormattedMessage(logEvent));
}
The text was updated successfully, but these errors were encountered: