Debug.Listeners for UWP Applications

Is it possible to send everything from Debug.WriteLineto a file in a UWP application?

There is Debug.Listeners, which, unfortunately, is not available in UWP applications. However, I found the NuGet package System.Diagnostics.TraceSource, which allows you to use Traceit Trace.Listenersin UWP. Therefore, I believe that this is possible with help Debug, but I did not find a suitable package or approach that works in UWP.

+4
source share

Source: https://habr.com/ru/post/1666429/


All Articles