ResponseDetective
ResponseDetective copied to clipboard
Add response filtering method.
Currently there is a method available to filter logged requests:
ignoreRequests(matchingPredicate predicate: NSPredicate)
The goal here is to create a method with the same idea to filter responses that are logged into console.
Motivation - I've integrated the library into the app and instantly deintegrated it due to amount of logged stuff that became totally unreadable. Single logs are really useful and readable, but I want to filter only responses that failed for some reason to investigate possible bugs.
Another approach to this might be to ask what about a request gets logged i.e. do you want the whole response body logged, or just the metadata / headers etc?