TsgcTURNServer › Properties › LogFile
Appends every STUN/TURN message received or sent by the server to a file for debugging.
property LogFile: TsgcSTUNLogFile read FLogFile write SetLogFile;
—
When Enabled is True every STUN Binding Request / Response and every TURN method exchange (ALLOCATE, REFRESH, CREATE-PERMISSION, CHANNEL-BIND, Send/Data indications) is appended to FileName, together with the error responses produced by the server. Relayed payload bytes carried over SendIndication / DataIndication and ChannelData are not written, only the protocol envelope. This is a debugging aid only; file access is not thread-safe across multiple components that share the same log. Disable it in production to avoid contention on the file handle under high allocation churn.
oTURN.LogFile.Enabled := True;
oTURN.LogFile.FileName := 'C:\logs\turn_server.log';
oTURN.Active := True;