Keil Logo

SLOG

The SLOG command creates, appends contents to, checks the status of, or close a log file.

Syntax Description
SLOG > path\filename Creates the file filename as a log file. Input and output from the Serial window is written to this file.
SLOG >> path\filename Opens an existing log file named filename for appending log information. If filename does not exist, it is created. Input and output from the Serial window is appended to this file.
SLOG Displays the status of the log file.
SLOG OFF Closes the log file.
Examples
SLOG >C:\TMP\dslog                     /* Create a new log file       */
SLOG                                   /* Interrogate log file status */
 serial log file: C:\TMP\dslog
SLOG OFF                               /* Close the log file          */
  Arm logo
Important information

This site uses cookies to store information on your computer. By continuing to use our site, you consent to our cookies.

Change Settings

Privacy Policy Update

Arm’s Privacy Policy has been updated. By continuing to use our site, you consent to Arm’s Privacy Policy. Please review our Privacy Policy to learn more about our collection, use and transfers
of your data.