registerFileAndConsoleTracer file redirection not working in netcoreapp2.1 app
Closed this issue · 1 comments
marina-p commented
I modified the main function in FSharpLu.Windows.Sample.fsproj (current version in master) to also redirect output to a file, as follows, ran the app and it did not produce any file output.
use logger = System.Diagnostics.Listener.registerFileAndConsoleTracer "myComponentName" (Some @"d:\temp")
blumu commented
@marina-p This is caused by a bug in System.Diagnostics.TextWriterTraceListener
. I filed it at https://github.com/dotnet/corefx/issues/35866 I will send a workaround shortly.