Network Logging - iOS
API reference for network logging in iOS with Luciq. Configure Luciq's network monitoring APIs to capture HTTP requests and responses in your iOS app.
Disable and Enable Request Logging
NetworkLogger.enabled = falseLCQNetworkLogger.enabled = NO;Omitting Requests from Logs
let path = \"/products\"
let requestPredicate = NSPredicate(format: \"URL.path MATCHES %@\", path)
let responsePredicate = NSPredicate(format: \"statusCode >= %d AND statusCode <= %d\", 200, 399)
NetworkLogger.setNetworkLoggingRequestFilterPredicate(requestPredicate, responseFilterPredicate: responsePredicate)NSString *path = @"/products";
NSPredicate *requestPredicate = [NSPredicate predicateWithFormat:@"URL.path MATCHES %@", path];
NSPredicate *responsePredicate = [NSPredicate predicateWithFormat:@"statusCode >= %d AND statusCode <= %d", 200, 399];
[LCQNetworkLogger setNetworkLoggingRequestFilterPredicate:requestPredicate responseFilterPredicate:responsePredicate];Manual Network Logging
Disable Automatic Network Capture
Obfuscating Data
Requests Not Appearing
AFNetworking
Alamofire
Last updated