TsgcSTUNServer › Properties › LogFile
Appends every STUN message received or sent by the server to a file for debugging.
property LogFile: TsgcSTUNLogFile read FLogFile write SetLogFile;
—
When Enabled is True every Binding Request received and every Binding Response or Error sent by the server is appended to FileName. This is a debugging aid only; file access is not thread-safe when the same log is shared across multiple components. For a busy server, disable the log in production to avoid contention on the file handle.
oSTUN.LogFile.Enabled := True;
oSTUN.LogFile.FileName := 'C:\logs\stun_server.log';
oSTUN.Active := True;