Enable debug logs for iOS inside XCode

1,112 views
Skip to first unread message

mailt...@gmail.com

unread,
Oct 14, 2014, 2:14:15 AM10/14/14
to discuss...@googlegroups.com
I am currently investigating a Trickle ICE scenario where after setting the remote ICE candidates, nothing happens (no ICE Connection state changes and no checks performed using the candidates).
As a result, the audio call does not work. This works fine if i try without Trickle ICE.
To debug, I added a few log statements(LOG(LS_INFO)..) in peerconnection.cc & webrtcsession.cc to figure out if there was some condition that was causing this to fail.
However I see none of these log output in XCode logs while running it on a device after using the newly compiled libraries.

I added _DEBUG=1 as suggested by one of the threads here in logging.cc(talk/base) however that did not change anything.
Has anyone able to do this? Is something else required to enable the logs?
I am using the branch 3.46

Thanks

Justin Dong

unread,
Oct 23, 2015, 2:46:07 AM10/23/15
to discuss-webrtc
I am also looking for enable webrtc ios log via xCode. Did not find the logging.cc talk/base but find it in webrtc/base in the latest code. And added _DEBUG=1 and recompiled the code which did not help either. Did you figure this out? It would be really helpful if you can give some light here.

Maxim Potapov

unread,
Oct 23, 2015, 4:07:08 AM10/23/15
to discuss-webrtc
// console output

RTCSetMinDebugLogLevel(kRTCLoggingSeverityInfo);


// file output

self.fileLogger = [[RTCFileLogger alloc] initWithDirPath:logsDirectory maxFileSize:(100 * 1024)];

self.fileLogger.severity = kRTCFileLoggerSeverityInfo;

[self.fileLogger start];

вторник, 14 октября 2014 г., 10:14:15 UTC+4 пользователь mailt...@gmail.com написал:
Reply all
Reply to author
Forward
0 new messages