Analyze Logged Messages
R2026bAfter you deploy and start an application on a Linux target, you can view both system and application-generated log messages in the Log Viewer panel of the Linux Runtime Manager. To deploy and start an application, see Build Simulink Model and Deploy Application and Manage Deployed Applications.
Each logged message contains the following fields:
TimestampTime when the message was logged.
AppIdUnique identifier of the application that generated the message.
CtxIdContext identifier of the message. A single application can have multiple contexts.
TypeSeverity level of the message, listed from highest to lowest severity:
Fatal,Error,Warn,Info,Debug,Verbose.MessageText content of the log message.
View Log Messages in Linux Runtime Manager
The Log Viewer panel displays log messages from all running applications on the connected target. To filter the messages, select values from the drop-down lists in the Filter by column to narrow the displayed messages by application, context, or severity level.

Access Log Messages Programmatically
You can also retrieve and filter log messages from the MATLAB command line by using the
linux.LogMessages object.
Create a log messages object by specifying the target name:
logObj = linux.LogMessages("myTarget");Retrieve messages by using the linux.LogMessages.get method with one or more filter
criteria:
msgs = logObj.get('MessageFilter', "error occurred", 'AppIdFilter', ... "myApp", 'CtxIdFilter', "CTRL", 'SeverityFilter', "Error")
You can also apply individual filters. To filter messages by application identifier:
msgs_appName = logObj.get('AppIdFilter', "myApp");
To filter messages by application identifier and context identifier:
msgs_ctx = logObj.get('AppIdFilter', "myApp", 'CtxIdFilter', "CTRL");
To filter messages by severity level:
msgs_severity = logObj.get('SeverityFilter', "Warn");
See Also
linux.LogMessages | linux.LogMessages.get