Name

log_file

log_file [options] [[-a] file]

Record a transcript of the session to file file. With no file argument, stop recording.

Options

-open

The file parameter is an open Tcl file identifier. The identifier should no longer be used.

-leaveopen

The file parameter is an open Tcl file identifier. The identifier can continue to be used.

-a

Log all output, including that suppressed by the log_user command.

-noappend

Truncate existing output file (default is to append).

-info

Display the current status of transcript recording.

Get Tcl/Tk in a Nutshell now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.