Vizard 8 » Command Index » Vizard modules » viz » <viz>.setLogFile
8.1

<viz>.setLogFile

Log all output to a file

<viz>.setLogFile(  
filename  
)  
filename
Filename to log output to

Remarks

This command will redirect all subsequent output from the Vizard script to the specified filename. If the file already exists, then its contents will be overwritten. Output generated before issuing this command will not be saved to the file.

Return Value

True/False if the log file was successfully created.

Example

viz.setLogFile('output.log')

See also

<viz>.log
<viz>.logAlways
<viz>.logDebug
<viz>.logError
<viz>.logInfo
<viz>.logNotice
<viz>.logWarn
<viz>.setLogLevel