Parcourir la source

ios: set logger subsystem and category

The subsystem is set to the bundle ID and the category to "JitsiMeetSDK".
master
Saúl Ibarra Corretgé il y a 6 ans
Parent
révision
7d972a50f2
1 fichiers modifiés avec 3 ajouts et 1 suppressions
  1. 3
    1
      ios/sdk/src/JitsiMeetLogger.m

+ 3
- 1
ios/sdk/src/JitsiMeetLogger.m Voir le fichier

@@ -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 {

Chargement…
Annuler
Enregistrer