瀏覽代碼

ios: set logger subsystem and category

The subsystem is set to the bundle ID and the category to "JitsiMeetSDK".
j8
Saúl Ibarra Corretgé 6 年之前
父節點
當前提交
7d972a50f2
共有 1 個文件被更改,包括 3 次插入1 次删除
  1. 3
    1
      ios/sdk/src/JitsiMeetLogger.m

+ 3
- 1
ios/sdk/src/JitsiMeetLogger.m 查看文件

@@ -26,7 +26,9 @@
26 26
 */
27 27
 __attribute__((constructor))
28 28
 static void initializeLogger() {
29
-    [DDLog addLogger:[DDOSLogger sharedInstance]];
29
+    NSString *mainBundleId = [NSBundle mainBundle].bundleIdentifier;
30
+    DDOSLogger *osLogger = [[DDOSLogger alloc] initWithSubsystem:mainBundleId category:@"JitsiMeetSDK"];
31
+    [DDLog addLogger:osLogger];
30 32
 }
31 33
 
32 34
 + (void)addHandler:(JitsiMeetBaseLogHandler *)handler {

Loading…
取消
儲存