Skip to content
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

Closed
ghost opened this issue Sep 19, 2012 · 0 comments
Labels
bug Bug report / Bug fix
Milestone

Comments

@ghost
Copy link

ghost commented Sep 19, 2012

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));
}

@ghost ghost self-assigned this Sep 19, 2012
@ghost ghost closed this as completed Sep 19, 2012
304NotModified added a commit that referenced this issue Jan 31, 2015
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 Oct 28, 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
UgurAldanmaz pushed a commit that referenced this issue Dec 13, 2015
304NotModified added a commit that referenced this issue Apr 26, 2016
Need for Thread.ResetAbort();
304NotModified added a commit that referenced this issue Apr 26, 2016
Fix filetarget: Thread was being aborted (#2)
304NotModified added a commit that referenced this issue Feb 28, 2021
304NotModified added a commit that referenced this issue Feb 28, 2021
This issue was closed.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Bug report / Bug fix
Projects
None yet
Development

No branches or pull requests

0 participants