Browse Source

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 years ago
parent
commit
7d972a50f2
1 changed files with 3 additions and 1 deletions
  1. 3
    1
      ios/sdk/src/JitsiMeetLogger.m

+ 3
- 1
ios/sdk/src/JitsiMeetLogger.m View File

26
 */
26
 */
27
 __attribute__((constructor))
27
 __attribute__((constructor))
28
 static void initializeLogger() {
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
 + (void)addHandler:(JitsiMeetBaseLogHandler *)handler {
34
 + (void)addHandler:(JitsiMeetBaseLogHandler *)handler {

Loading…
Cancel
Save