与iOS中的NSLog相比,LOGGING_FACILITY的用途是什么?

时间:2015-02-26 10:07:12

标签: ios objective-c iphone

我正在为RSA算法创建密钥对。我正在研究Apple在Crypto上的示例项目,https://developer.apple.com/library/ios/samplecode/CryptoExercise/Introduction/Intro.html

请参阅以下代码

sanityCheck = SecKeyGeneratePair((__bridge CFDictionaryRef)keyPairAttr, &publicKey, &privateKey);

LOGGING_FACILITY( sanityCheck == noErr && publicKey != NULL &&     privateKey != NULL, @"Something really bad went wrong with generating the key pair." );

我发现使用了LOGGING_FACILITY。据我所知,它用于记录目的。任何人都可以详细说明LOGGING_FACILITY和NSLog之间的区别是什么?还显示了指向Apple文档的指示,解释了LOGGING_FACILITY

的用法

0 个答案:

没有答案