Ver código fonte

ios: set logger subsystem and category

The subsystem is set to the bundle ID and the category to "JitsiMeetSDK".
master
Saúl Ibarra Corretgé 5 anos atrás
pai
commit
7d972a50f2
1 arquivos alterados com 3 adições e 1 exclusões
  1. 3
    1
      ios/sdk/src/JitsiMeetLogger.m

+ 3
- 1
ios/sdk/src/JitsiMeetLogger.m Ver arquivo

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 {

Carregando…
Cancelar
Salvar