<< back to sysax.com Product page

2.2. Configuring logging options

The output from the FTP Automation component may be written out to the console

Exhibit 2.4. IDL Definition of method to control console output


HRESULT ConsoleLog ([in] VARIANT_BOOL f_isenable);


Exhibit 2.5. Example usage of method to control console output (VBScript)


'enable output to console
app.ConsoleLog = true


The output can also be written to a file. The output can be appended to existing log entries. The file can also be rolled over after a size limit is reached. By default, the log file is set to overwrite mode and rollover is disabled.

Exhibit 2.6. IDL Definition of method to enable writing to log file

  

HRESULT SetLogFile ([in] BSTR b_filename, [in, defaultvalue(false)] VARIANT_BOOL f_isappend, [in, defaultvalue(0)] UINT n_rolloversize);


Exhibit 2.7. Example usage of method to enable writing to log file "(VBScript)"


'enable writing to log file (overwrite file, rollover disabled)
app.SetLogFile "c:\\mylog.txt", false, 0