No Logging available in ComponentSettings?

There is a default log object in the standard Dut/TestStep/and Instrument classes, but there does not seem to be one in the ComponentSettings class. How should I configure the TraceSource?

2 Likes

You can create a new TraceSource object that attaches to your ComponentSettings

2 Likes

Thanks for the example link. I know that this can identify the source object that originated the log message, but will it still be written to the same file with all of the other logs?

2 Likes

They will all be written to the same Log file, the Source sets the 3rd column (TestPlan, TestStep, PackageManager, etc).

1 Like

This post was perfect, as just now I needed to add a trace source. Thanks @Tim.Cyr and @brennen_direnzo!

1 Like