O'Reilly logo

RestKit for iOS by Taras Kalapun

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

Logging

Sometimes we might come across a situation where we don't understand how the request was made, or why the mapping failed, or if RestKit inserted that data in the Core Data or not. For such purposes, RestKit has powerful logging abilities, which are based on the LibComponentLogging framework. It supports six levels of logging (Off, Critical, Error, Warning, Info, Debug, Trace), which can be configured for every RestKit's component individually. You can turn these levels for such components as shown in the following table:

Component

Note

App

Logging for usage in your app

RestKit

All the RestKit components

RestKit/Core Data

Core Data logging

RestKit/Core Data/Cache

Logging of cache usage in Core Data component

RestKit/Network

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required