messages
Description
displays console log message lines from a systemlog_out
= messages(systemlog_object
)SystemLog
object. You can set the messageFilter
property and
severityFilter
property of the object to select message lines to
display from the log.
Examples
Create and View System Log
The SystemLog
object and related functions let you
display the console log from a target computer and use filters to search through the
log.
Create Target
object
tg
. Create SystemLog
object
slog
that contains the current console log for the target
computer.
tg = slrealtime('TargetPC1');
slog = slrealtime.SystemLog(tg);
Display the console log content from slog
messages(slog)
ans = 13×4 table Timestamp Message Severity Category ____________________ ______________________________________________ ________ ________ 26-Nov-2019 21:27:33 "Target IP address: 192.168.7.5" "info" 2 26-Nov-2019 21:28:44 "Loading model slrt_ex_mds_and_tasks" "info" 0 26-Nov-2019 21:28:44 "Loading model slrt_ex_mds_and_tasks" "info" 0 26-Nov-2019 21:28:44 "Waiting for start command" "info" 0 26-Nov-2019 21:28:44 "Waiting for start command" "info" 0 26-Nov-2019 21:28:44 "loglevel = info" "info" 0 26-Nov-2019 21:28:44 "loglevel = info" "info" 0 26-Nov-2019 21:28:44 "pollingThreshold = 0.0001" "info" 0 26-Nov-2019 21:28:44 "pollingThreshold = 0.0001" "info" 0 26-Nov-2019 21:28:44 "relativeTimer = [unset]" "info" 0 26-Nov-2019 21:28:44 "relativeTimer = [unset]" "info" 0 26-Nov-2019 21:28:44 "stoptime = 2" "info" 0 26-Nov-2019 21:28:44 "stoptime = 2"
Input Arguments
systemlog_object
— Object that represents console log content
slrealtime.SystemLog
object
Provides access to methods that display and filter console log content from the target computer.
Example: slog
Output Arguments
systemlog_out
— Object output by system log related function
slrealtime.SystemLog
object
Provides access to filtered output drawn from a SystemLog
object by
using the messages
function or tail
function.
Example: slogout
Version History
Introduced in R2020b
See Also
SystemLog
| reset
| tail
| slrtLogViewer
MATLAB Command
You clicked a link that corresponds to this MATLAB command:
Run the command by entering it in the MATLAB Command Window. Web browsers do not support MATLAB commands.
Select a Web Site
Choose a web site to get translated content where available and see local events and offers. Based on your location, we recommend that you select: .
You can also select a web site from the following list
How to Get Best Site Performance
Select the China site (in Chinese or English) for best site performance. Other MathWorks country sites are not optimized for visits from your location.
Americas
- América Latina (Español)
- Canada (English)
- United States (English)
Europe
- Belgium (English)
- Denmark (English)
- Deutschland (Deutsch)
- España (Español)
- Finland (English)
- France (Français)
- Ireland (English)
- Italia (Italiano)
- Luxembourg (English)
- Netherlands (English)
- Norway (English)
- Österreich (Deutsch)
- Portugal (English)
- Sweden (English)
- Switzerland
- United Kingdom (English)
Asia Pacific
- Australia (English)
- India (English)
- New Zealand (English)
- 中国
- 日本Japanese (日本語)
- 한국Korean (한국어)