Implemented flexible logging solution utilizing the excellent LibComponentLogging library.

This commit is contained in:
Blake Watters
2011-06-10 09:22:23 -04:00
parent bc355d69fd
commit 9299cabc11
50 changed files with 3176 additions and 220 deletions

View File

@@ -12,7 +12,11 @@
#import "RKObjectSerializer.h"
#import "NSDictionary+RKRequestSerialization.h"
#import "RKParserRegistry.h"
#import "Logging.h"
#import "RKLog.h"
// Set Logging Component
#undef RKLogComponent
#define RKLogComponent lcl_cRestKitObjectMapping
@implementation RKObjectSerializer
@@ -86,7 +90,7 @@
}
if (transformedValue) {
RKLOG_MAPPING(RKLogLevelDebug, @"Serialized %@ value at keyPath to %@ (%@)", NSStringFromClass([value class]), NSStringFromClass([transformedValue class]), value);
RKLogDebug(@"Serialized %@ value at keyPath to %@ (%@)", NSStringFromClass([value class]), NSStringFromClass([transformedValue class]), value);
[operation.destinationObject setValue:transformedValue forKey:keyPath];
}
}