Add TraceConsoleLister
Posted: 28 Nov 2019, 17:51
Hi,
I'm using the SDK v3.0.0 with .NET Core 2.2 and I'm struggling with the trace configuration.
I have correctly configured it to write messages to a file but I want also to print the messages on the console.
Following the documentation I have called:
after the ApplicationInstance.Start and with TraceSettings.MasterTraceEnabled set to 'true' but when I call TraceDebug.Error("message") the message is written only in the trace file and not in the console.
What am I missing?
Thank you
I'm using the SDK v3.0.0 with .NET Core 2.2 and I'm struggling with the trace configuration.
I have correctly configured it to write messages to a file but I want also to print the messages on the console.
Following the documentation I have called:
Code: Select all
TraceBase.AddListener(new TraceConsoleListener())
What am I missing?
Thank you