dotnet / runtime

.NET is a cross-platform runtime for cloud, mobile, desktop, and IoT apps.
https://docs.microsoft.com/dotnet/core/
MIT License
14.91k stars 4.63k forks source link

Log Debug even when no debugger attached (support DbgView) #36564

Open ardalis opened 6 years ago

ardalis commented 6 years ago

See https://stackoverflow.com/questions/39926520/asp-net-core-logging-and-debugview-exe

Currently the DbgView tool from SysInternals is unable to get Debug log statements from the default ASPNET Core logging. Consider supporting this scenario, which can be extremely useful for diagnosing problems, including in production environments (where attaching a debugger is not practical).

muratg commented 6 years ago

@davidfowl Do you know why we enforced the debugger to be attached?

Eilon commented 6 years ago

Would be interesting to see what happens to perf. But then maybe even if perf is bad, then don't use it in production.

davidfowl commented 6 years ago

People use dbgview in production?

ardalis commented 6 years ago

Occasionally. And in any case it’s nice when you can’t attach a debugger.

ghost commented 4 years ago

Tagging subscribers to this area: @tommcdon Notify danmosemsft if you want to be subscribed.