10

I'm sendind an object through RKObjectManager:

[[RKObjectManager sharedManager] postObject:myObject delegate:delegate];

The mapping and route is already configured and it works successfully. It sends a json and the server receive the request, but I have a question. On IOS side, how can I print the json sent to the server.

vikingosegundo
  • 52,040
  • 14
  • 137
  • 178
Naka
  • 1,008
  • 13
  • 14
  • You probably want to enable logging: http://stackoverflow.com/questions/7664892/how-can-i-see-the-communication-of-the-restkit-networkjson-string/7666125#7666125 – mja Aug 02 '12 at 18:19
  • Thank you, that's what I'm looking for. Write as an answer for upvote. – Naka Aug 02 '12 at 18:26
  • 2
    feel free to vote for the original answer, there's no point to duplicate it. – mja Aug 02 '12 at 18:28

1 Answers1

21

Put the following in your app delegate:

RKLogConfigureByName("RestKit/Network", RKLogLevelTrace); 
RKLogConfigureByName("RestKit/ObjectMapping", RKLogLevelTrace);
Resh32
  • 6,500
  • 3
  • 32
  • 40