TsgcTURNClient › Properties › LogFile
Saves every STUN/TURN message sent or received to a file for debugging.
property LogFile: TsgcSTUNLogFile read FLogFile write SetLogFile;
—
When Enabled is True every STUN and TURN message sent and received by the client (including ALLOCATE, REFRESH, CreatePermission, ChannelBind, SEND and DATA indications) 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.
oTURN.LogFile.Enabled := True;
oTURN.LogFile.FileName := 'C:\logs\turn_client.log';
oTURN.Allocate;