This command displays or clears the system error log.
ErrorLog select, count
Prerequisites
None
Parameters
select
An optional keyword or name that selects the type and format of the error log data to be displayed. If omitted, all types of log entries are displayed in the standard format. Only a single keyword may be specified. This may be set to one of the following values:
-all
All types of error log data is displayed.
-clear
The error log is cleared.
-servo
Only errors from the servos are displayed.
-web
All types of errors are displayed in web format.
thread
Only errors from the thread named thread are displayed.
count
An optional numeric value that specifies the maximum number of error log entries that are displayed. The count newest entries are displayed. If this parameter is zero or omitted, all entries specified by select are displayed.
Remarks
This command displays error log entries as text. It can be executed from the console or from the web interface to obtain the contents of the error log.
The maximum number of retained error log entries is determined by DataID 321 "Error log max entries".
The text output format for each error log entry is as follows:
<date> <time> <d> <source><d> <ecode><d> <string><lf>
where:
<date>
The date formatted as month-day-year.
<time>
The timestamp when the error occurred formatted in hours (0-23), minutes, seconds.milliseconds.
<d>
A delimiter character, "," for the standard format or "|" for the -web format.
<source>
The originating source for the log entry. If the source is a GPL thread, this is the name of the thread, otherwise, this is one of the following:
nxx
Network node xx.
sxx
Servo process xx.
Trj
Trajectory Generator
Sys
Operating system
Msg
A user message from the method Controller.SystemMessage().
<ecode>
This is a standard GPL error code value. This field and its delimiter are omitted for user messages.
<string> The text for the error code or message, enclosed in quotes.
Examples
GPL: ErrorLog
04-27-2013 06:46:11.397, Msg, "User-generated message"
04-27-2013 06:49:47.520, Test, -1046, "*Power not enabled*"
GPL: ErrorLog -web
04-27-2013 06:46:11.397| Msg| "User-generated message"
04-27-2013 06:49:47.520| Test| -1046| "*Power not enabled*"
See Also