mirror of
https://github.com/zhigang1992/RestKit.git
synced 2026-04-24 04:46:01 +08:00
Add private initializer class to ensure logging defaults are configured at load
This commit is contained in:
@@ -20,6 +20,19 @@
|
||||
|
||||
#import "RKLog.h"
|
||||
|
||||
// Hook into Objective-C runtime to configure logging when we are loaded
|
||||
@interface RKLogInitializer : NSObject
|
||||
@end
|
||||
|
||||
@implementation RKLogInitializer
|
||||
|
||||
+ (void)load
|
||||
{
|
||||
RKLogInitialize();
|
||||
}
|
||||
|
||||
@end
|
||||
|
||||
int RKLogLevelForString(NSString *, NSString *);
|
||||
|
||||
static BOOL loggingInitialized = NO;
|
||||
|
||||
Reference in New Issue
Block a user