Logs app extensions to console.log

This commit is contained in:
manuroe
2017-10-20 14:57:51 +02:00
parent d0a087a387
commit 11f477e5e7
4 changed files with 16 additions and 7 deletions
@@ -73,7 +73,12 @@ typedef NS_ENUM(NSInteger, ImageCompressionMode)
sdkOptions.disableIdenticonUseForUserAvatar = YES;
// Enable e2e encryption for newly created MXSession
sdkOptions.enableCryptoWhenStartingMXSession = YES;
// NSLog -> console.log file when not debugging the app
if (!isatty(STDERR_FILENO))
{
[MXLogger redirectNSLogToFiles:YES];
}
});
return sharedInstance;
}