# Log and replay functions

You can save the host data to the file if you use Tera Term logging function.

## Log to the file

You can log characters received from the host. Execute the [File] Log command to start logging.

Do in the following commands:

1. Do [File] Log command.
2. "Tera Term: Log" dialog box will be shown.

   Input the saving file name to `File Name:'.
   All host data will be written to the file if you check `Binary' option.
   KANJI, CR and LF codes are converted to host character code, written to the file if you uncheck `Binary' option. However, the escape sequences are not written to the file.
   The host data will append the file if you check `Append' option.
   The host data will overwrite the file if you uncheck `Append' option.

3. Push OK button, "Tera Term: Log" icon will be shown. And logging will start.
4. Push Close or Pause button on the logging dialog box if you finish the logging or temporarily stop. Pause button will change into Start button if you push Pause button, the logging will restart.

To browse log files, which contain escape sequences, it is convenient to use the replay function of Tera Term. To replay a log file.

## Replay the log file

Run Tera Term with command line in the following:

    TTERMPRO /R=<log file name>

Tera Term analyzes the specified log file and understands the escape sequence datas. If so, the contents of log file will be displayed in Tera Term window as if the characters were received from the host. We call this function 'replay log'.

And also, you can also use 'Host:' on the [File] New connection command.

    /R=<log file name>