Keil Logo

LOG

The LOG command creates, appends output to, checks the status of, or closes a log file. The Command window output can be copied to the log file. The filename can contain a drive letter and path specification.

Syntax Description
LOG > path\filename Creates the file filename as a log file. Output from the Command window is written to this file.
LOG >> path\filename Opens an existing log-file, filename, for appending log information. If filename does not exist, it is created. Output from the Command window is appended to this file.
LOG Displays the status of the log file.
LOG OFF Closes the log file.
Example
LOG >C:\TMP\dslog                     /* Create a new log file       */
LOG                                   /* Interrogate log file status */
 command log file: C:\TMP\dslog
LOG 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.