ILogScripting::SetInputLogFile

This method enables the caller to specify the log file that should be read by your custom logging module.

virtual HRESULT STDMETHODCALLTYPE SetInputLogFile(

  BSTR szInputLogFileName,

  DATE startDateTime,

  DATE endDateTime    

);

 

Parameters
szInputLogFileName
[in] A null-terminated string that contains the name of the log file to be read.
startDateTime
[in] Specifies the starting date and time.
endDateTime
[in] Specifies the ending date and time.
Remarks

The caller is free to call either ILogScripting:SetInputLogFile or ILogScripting::SetInputServerInstance. It is not necessary, nor is it proper, for the caller to call both ILogScripting::Set… methods in the same attempt to read a log file. The second ILogScripting::Set… call will simply reset the read initiated by the first call.

After this method is called, the caller is obliged to call ILogScripting::ReadLogRecord before calling any of the ILogScripting::Get… methods.

See Also

ILogScripting Interface