Add TraceConsoleLister

Questions regarding the use of the .NET SDK 2.0 for Server or Client development or integration into customer products ...

Moderator: uasdknet

Post Reply
alberto.piovan
Full Member
Full Member
Posts: 5
Joined: 16 Mar 2017, 15:47

Add TraceConsoleLister

Post by alberto.piovan »

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:

Code: Select all

TraceBase.AddListener(new TraceConsoleListener())
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

Post Reply