Ensure that logging is configured on first invocation of RKLogConfigureByName. This

allows you to initialize the log level before you have configured any other part of the
framework.
This commit is contained in:
Blake Watters
2011-06-21 13:26:06 -04:00
parent 2a23531379
commit 903ab19eae
2 changed files with 4 additions and 2 deletions

View File

@@ -12,7 +12,7 @@ static BOOL loggingInitialized = NO;
void RKLogInitialize() {
if (loggingInitialized == NO) {
RKLogConfigureByName("RestKit*", RKLogLevelDefault);
lcl_configure_by_name("RestKit*", RKLogLevelDefault);
RKLogInfo(@"RestKit initialized...");
loggingInitialized = YES;
}