TsgcSTUNClient › Properties › LogFile
디버깅을 위해 전송되거나 수신된 모든 STUN 메시지를 파일에 저장합니다.
property LogFile: TsgcSTUNLogFile read FLogFile write SetLogFile;
—
Enabled가 True이면 클라이언트가 보내고 받는 모든 STUN 메시지가 FileName에 추가됩니다. 이는 디버깅 보조 도구로 의도된 것입니다. 동일한 로그가 여러 스레드 또는 구성 요소 간에 공유되는 경우 파일 액세스는 스레드 안전하지 않습니다.
oSTUN.LogFile.Enabled := True;
oSTUN.LogFile.FileName := 'C:\logs\stun_client.log';
oSTUN.SendRequest;