This category only appears if VanDyke Software's SecureCRT® 5.0 (or newer) is also installed.

The Log File category of the Session Options dialog allows you to customize the logging options for the selected session .

Log file name group

This section lets you specify a default filename for your log file. You can enter a path or filename, or you can use the Browse button to open the Save As dialog and select the path or filename. You can also include any of the variables listed in the Substitutions section below. These variables will be expanded when SecureCRT writes to the log file.

Options group

This section lets you specify log file behaviors.

Prompt for filename

Check this option to prompt the user for the session log filename when the log is started.

Start log upon connect

Check this option to start writing to the session log file whenever a connection is made. By default, this option is not selected.

Overwrite file

If this option is selected and the session log file already exists, the current log file will be overwritten by the new session log file.

Append to file

If this option is selected and the session log file already exists, the new session log will be appended to the existing log file. If the log file does not already exist, a new file is created.

Raw log

Check this option to write every character received by SecureCRT, including terminal escape sequences, to the session log file. By default, this option is off.

Start new log file at midnight

Check this option to have SecureCRT start a new log file each night at midnight. Using this feature can aide in automatic log rotation.

Custom log data group

This section lets you specify custom messages to be written to the log file. You can include any of the variables listed in the Substitutions section below. These variables will be expanded when SecureCRT writes to the log file.

Upon connect

Entries in this box will be written to the log file when the session connects.

Upon disconnect

Entries in this box will be written to the log file when the session disconnects.

On each line

Entries in this box will be written to each line of the log file.

Log only custom data

If this option is selected, SecureCRT will log only the custom data from the three fields above. All normal log messages will be suppressed.

Substitutions group

In the dialog, this section lists some of the variables that SecureCRT can expand when writing to the log file. A complete list is shown below.

%H - hostname

%S - session name

%P - port

%Y - four-digit year

%y - two-digit year

%M - two-digit month

%D - two-digit day of the month

%h - two-digit hour

%m - two-digit minute

%s - two-digit seconds

%t - three-digit milliseconds

%% - percent (%)

% envvar% - environment variable

Note: The environment variable substitution occurs first.

Related Topics