AppRTCDemo file logging.
Adds logging macros to log logs to a file. Undeletes CircularFileStream
for that purpose.
BUG=
R=jiayl@webrtc.org, pbos@webrtc.org
Review URL: https://codereview.webrtc.org/1217473011 .
Cr-Commit-Position: refs/heads/master@{#9582}
diff --git a/talk/examples/objc/AppRTCDemo/ios/ARDVideoCallViewController.m b/talk/examples/objc/AppRTCDemo/ios/ARDVideoCallViewController.m
index 2f07c7a..149beef 100644
--- a/talk/examples/objc/AppRTCDemo/ios/ARDVideoCallViewController.m
+++ b/talk/examples/objc/AppRTCDemo/ios/ARDVideoCallViewController.m
@@ -30,6 +30,7 @@
#import "RTCAVFoundationVideoSource.h"
#import "ARDAppClient.h"
+#import "ARDLogging.h"
#import "ARDVideoCallView.h"
@interface ARDVideoCallViewController () <ARDAppClientDelegate,
@@ -69,13 +70,13 @@
didChangeState:(ARDAppClientState)state {
switch (state) {
case kARDAppClientStateConnected:
- NSLog(@"Client connected.");
+ ARDLog(@"Client connected.");
break;
case kARDAppClientStateConnecting:
- NSLog(@"Client connecting.");
+ ARDLog(@"Client connecting.");
break;
case kARDAppClientStateDisconnected:
- NSLog(@"Client disconnected.");
+ ARDLog(@"Client disconnected.");
[self hangup];
break;
}
@@ -83,7 +84,7 @@
- (void)appClient:(ARDAppClient *)client
didChangeConnectionState:(RTCICEConnectionState)state {
- NSLog(@"ICE state changed: %d", state);
+ ARDLog(@"ICE state changed: %d", state);
__weak ARDVideoCallViewController *weakSelf = self;
dispatch_async(dispatch_get_main_queue(), ^{
ARDVideoCallViewController *strongSelf = weakSelf;