TsgcTURNClientProperties › LogFile

LogFile Property

Saves every STUN/TURN message sent or received to a file for debugging.

Syntax

property LogFile: TsgcSTUNLogFile read FLogFile write SetLogFile;

Default Value

Remarks

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.

Example

oTURN.LogFile.Enabled := True;
oTURN.LogFile.FileName := 'C:\logs\turn_client.log';
oTURN.Allocate;

Back to Properties