Logs app extensions to console.log

This commit is contained in:
manuroe
2017-10-20 14:57:51 +02:00
parent 9b05c17758
commit 34b4c2d4f3
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;
}