TsgcSTUNClient › Properties › LogFile
Saves every STUN message sent or received to a file for debugging.
property LogFile: TsgcSTUNLogFile read FLogFile write SetLogFile;
—
When Enabled is True every STUN message sent and received by the client is appended to FileName. This is intended as a debugging aid; access to the file is not thread-safe when the same log is shared between multiple threads or components.
oSTUN.LogFile.Enabled := True;
oSTUN.LogFile.FileName := 'C:\logs\stun_client.log';
oSTUN.SendRequest;