Main Content

messages

Display console log messages in a system log object

Since R2020b

Description

example

systemlog_out = messages(systemlog_object) displays console log message lines from a SystemLog object. You can set the messageFilter property and severityFilter property of the object to select message lines to display from the log.

Examples

collapse all

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

collapse all

Provides access to methods that display and filter console log content from the target computer.

Example: slog

Output Arguments

collapse all

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