Keil Logo

µVISION DEBUGGER: LOGGING SERIAL WINDOW OUTPUT IN A FILE


Information in this article applies to:

  • µVision Version 2.20

QUESTION

How do I print or save the contents of the serial window to a file?

ANSWER

The SLOG command logs the serial window contents to a file. For example:

slog > c:\file.log

creates the file C:\FILE.LOG as a log file. Input and output from the Serial window is written to this file.

slog >> c:\file.log

opens an existing log file named C:\FILE.LOG for appending log information. If the file 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.

MORE INFORMATION

For more information on this and other µVision Debug Commands, go to the Books tab in µVision. Double click on the Tools User's Guide folder, then double click on µVision Debug Commands. SLOG is listed under General Commands.

Last Reviewed: Wednesday, July 20, 2005


Did this article provide the answer you needed?
 
Yes
No
Not Sure
 
  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.