Last active
August 29, 2015 14:10
-
-
Save CHLibrarian/1976bfd8ef49b7c44532 to your computer and use it in GitHub Desktop.
Application Services Logging
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
NSString *logMessage = @"Logging message"; | |
NSDictionary *logDictionary = @{@"key1": @"value1", @"key2": @"value2"}; | |
// Logging a message and a custom valid-JSON dictionary to ContextHub | |
[[CCHLog sharedInstance] log:logMessage userInfo:logDictionary completionHandler:(void (^)(NSError *error))completionHandler { | |
if (!error) { | |
NSLog(@"Message logged successfully"); | |
} else { | |
NSLog(@"Failed to log message to Contexthub"); | |
} | |
}]; |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment