Login  •  Register


Add TraceConsoleLister

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

Add TraceConsoleLister

Postby alberto.piovan » 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:
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
alberto.piovan
Jr. Member
Jr. Member
 
Posts: 4
Joined: 16 Mar 2017, 15:47

Return to .NET based OPC UA SDK

Who is online

Users browsing this forum: No registered users and 0 guests