ios: set logger subsystem and category

The subsystem is set to the bundle ID and the category to "JitsiMeetSDK".
This commit is contained in:
Saúl Ibarra Corretgé 2019-09-23 15:32:04 +02:00 committed by Saúl Ibarra Corretgé
parent 92e7be34e3
commit 7d972a50f2
1 changed files with 3 additions and 1 deletions

View File

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