Kt34400SystemTracing¶
Access interface members using:driver.system.tracingWheredriveris a reference to the driver’s root interface returned by the constructor.
- class Kt34400SystemTracing¶
Kt34400SystemTracinginterface.- property enabled¶
If true, driver execution trace messages are written to the logging buffer. The level of detail is set by the Level property. The logging buffer is appended to a file when the Enabled property is set from true to false, or when the driver is closed if Enabled is true, or by the Flush() method.
- Access:
ReadWrite
- Type:
- property file_name¶
The name of the file to append the contents of the logging buffer to. Default is ‘Kt34400_Trace.log’ in the folder where the driver application is running. File is written by the Flush() method or when the driver is closed if logging Enabled is true.
- Access:
ReadWrite
- Type:
- flush(self: keysight_kt34400.keysight_kt34400.Kt34400SystemTracing) None¶
Appends the contents of the logging buffer to the file specified by the FileName property. Default file is ‘Kt34400_LogOutput.txt’ in the folder where the driver application is running.
- Returns:
None
- property level¶
The level of messages to write to the logging buffer if Tracing Enabled is true. Messages of the Level setting or higher are written. Low to high Level order is: Debug, Info, Warning, Error
- Access:
ReadWrite
- Type:
- write(self: keysight_kt34400.keysight_kt34400.Kt34400SystemTracing, message: str) None¶
Writes a message to the logging buffer at the current Level if Enabled is true.
- Parameters:
message (str) – The message text to write to the logging buffer.
- Returns:
None
