Main Content

matlab.unittest.diagnostics.LoggedDiagnosticEventData class

Package: matlab.unittest.diagnostics

Event data for DiagnosticLogged event listeners

Description

The LoggedDiagnosticEventData class holds event data for DiagnosticLogged event listeners. Invoking the log method within your tests triggers the DiagnosticLogged event listeners. Only the test framework constructs this class directly.

Properties

Verbosity

Verbosity level of the logged message, represented as a matlab.unittest.Verbosity enumeration.

Timestamp

Date and time of the call to the log method, represented as a datetime value.

Diagnostic

Diagnostic specified in the call to the log method, represented as a character vector, string, function handle, or instance of matlab.unittest.diagnostics.Diagnostic.

Stack

Function call stack leading up to the call to the log method, represented as a structure array.

DiagnosticResults

Results of diagnostics specified in a matlab.unittest.TestCase.log or matlab.unittest.fixtures.Fixture.log method call, represented as an array of DiagnosticResult instances.