Analyze Logged Messages
After you start an application, you can view the log messages of the application and custom log messages from the Linux target computer in the Log Viewer panel. Each logged message contains these fields:
Time when message is logged -
Timestamp
Unique application id -
AppId
Context id of the message. An application can have multiple contexts -
CtxId
Type of the message. Possible types are
Error
,Warn
,Fatal
,Info
,Verbose
, andDebug
-Type
Message text -
Message
To filter the messages to view on the application, use Filter by: column.
To create an object for the log messages from the command line, use this command:
logObj = linux.LogMessages(<targetName>);
msgs = logObj.get('MessageFilter', <message>, 'AppIdFilter', <appId>, 'CtxIdFilter', <ctxId>, 'SeverityFilter', <severityLevel>)
msgs_appName = logObj('AppIdFilter',<appId>);
msgs_ctx = logObj('AppIdFilter',<appId>,'CtxIdFilter',<ctxId>);
msgs_severity = logObj('SeverityFilter',<SeverityLevel>);
See Also
linux.LogMessages
| linux.LogMessages.get