µVISION DEBUGGER: LOGGING SERIAL WINDOW OUTPUT IN A FILE
Information in this article applies to:
How do I print or save the contents of the serial window to a file?
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.
displays the status of the log file.
closes the log file.
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
of your data.