From bfd4fbd1ce65a5d6a3c1d4e6da30dd635bf02f55 Mon Sep 17 00:00:00 2001 From: Matt Lyons Date: Fri, 22 Nov 2024 11:13:04 -0600 Subject: [PATCH] enable trace logging --- c-sharp/Program.cs | 3 +++ 1 file changed, 3 insertions(+) diff --git a/c-sharp/Program.cs b/c-sharp/Program.cs index 7e4cfce959..45b667c8d0 100644 --- a/c-sharp/Program.cs +++ b/c-sharp/Program.cs @@ -15,6 +15,9 @@ public static async Task Main() { Console.WriteLine("Paranext data provider starting up"); Thread.CurrentThread.Name = "Main"; + System.Diagnostics.Trace.Listeners.Add(new System.Diagnostics.ConsoleTraceListener()); + System.Diagnostics.Trace.AutoFlush = true; + System.Diagnostics.Trace.WriteLine("Trace logging enabled"); using PapiClient papi = new(); try