Main Content

matlab.unittest.diagnostics.LoggedDiagnosticEventData class

Package: matlab.unittest.diagnostics
Superclasses: event.EventData

Event data for DiagnosticLogged event listeners

Description

The matlab.unittest.diagnostics.LoggedDiagnosticEventData class holds event data for DiagnosticLogged event listeners. Invoking the log method within your tests triggers the DiagnosticLogged event listeners.

The testing framework instantiates this class. You cannot create an object of the matlab.unittest.diagnostics.LoggedDiagnosticEventData class directly.

The matlab.unittest.diagnostics.LoggedDiagnosticEventData class is a handle class.

Properties

expand all

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

Attributes:

GetAccess
public
SetAccess
immutable

Date and time of the call to the log method, returned as a datetime object.

Attributes:

GetAccess
public
SetAccess
immutable

Diagnostic specified in the call to the log method, returned as a character vector, string scalar, function handle, or matlab.unittest.diagnostics.Diagnostic object.

Attributes:

GetAccess
public
SetAccess
immutable

Function call stack containing the list of function calls that led to the call to the log method, returned as a structure array.

Attributes:

GetAccess
public
SetAccess
immutable

Results of diagnostics, returned as an array of matlab.unittest.diagnostics.DiagnosticResult objects.

Attributes:

GetAccess
public
SetAccess
immutable

Version History

Introduced in R2014b