SetLogFilename Method

Overrides the filename for plain text and formatted log files. This is treated as relative to the LogDirectory. Any file extension will be replaced with .xjlog for formatted log files. If an absolute path is given then LogDirectory will be updated accordingly.

Type: Runner

Namespace: XJTAG.Integration.XJRunner

Syntax

public void SetLogFilename(string filename)

Parameters

filename

Type: string

Exceptions

RuntimeException

Attempted to set log filename while tests or functions are currently executing or a run session has already been started.

System.ObjectDisposedException

The Runner object has already been disposed.

System.ArgumentException

The filename is invalid.

Remarks

This also uses the log filename formatting syntax used on the XJRunner Setup Screen. This may be used to include serial numbers, pass/fail result, date times and other variables in the filename. See the Editing Log Formats page of the XJRunner help for more details.