TApxProtocolLog.UpdateLog

TApxProtocolLog

procedure UpdateLog(const Log : Word); virtual;

Call for each protocol logging event.

The Log parameter has the same values passed to the OnProtocolLog event handler of TApxProtocol. UpdateLog creates or appends to the log file, builds and writes a text string for each event, and closes the log file. Additionally, it deletes the partially received file if Log equals lfReceiveFail and the protocol type is not Zmodem.

Note that TApxProtocolLog contains a field named Protocol that UpdateLog uses to obtain additional information about the protocol such as the FileName, FileLength, ElapsedMSecs, and ProtocolType.

See also: TApxProtocol.OnProtocolLog