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

Replace Debug.WriteLine #402

Open
ohadschn opened this issue Sep 26, 2017 · 1 comment
Open

Replace Debug.WriteLine #402

ohadschn opened this issue Sep 26, 2017 · 1 comment

Comments

@ohadschn
Copy link
Contributor

Debug.WriteLine is only there in debug session, but the information it prints could be useful in other scenarios, such as production debugging. Some alternatives, in increasing order of preference:

  1. Trace.TraceInformation / Trace.TraceWarning / Trace.TraceError.
  2. Same as above but using your own TraceSource
  3. EventSource (ETW).
@mattwiller
Copy link
Contributor

It looks like the System.Diagnostics.Trace class is only supported in .NET Standard 2.0, which would be a breaking change for us to target today. We may need to explore alternate solutions, or just wait until we can drop support for older .NET Core versions.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants