Declared in: EDBMMHttp
TMMLogEvent = procedure(Sender: TObject; const AMsg: string) of object;
Log callback used by TMMConnection,
TMMScript, and TMMUpdater.
Assign a method of your form or object to the OnLog
property on any of the three classes to receive log output.
The same method can be shared across all three.
procedure TMyForm.HandleLog(Sender: TObject; const Msg: string);
begin
Memo1.Lines.Add(Msg);
end;
// Assignment:
Conn.OnLog := HandleLog;
Script.OnLog := HandleLog;
Upd.OnLog := HandleLog;