Search code examples
ioscocoa-touchrestkit

Restkit, Stop Logging?


I am wondering.. Restkit keeps showing reachability information, request information as i use it. Will this automatically stop in production version or do i need to do something to stop them from displaying like setting RKLog level?

thanks


Solution

  • The logging messages in a RestKit app are controlled by the RKLog calls. For example:

        RKLogConfigureByName("RestKit", RKLogLevelWarning); 
        RKLogConfigureByName("RestKit/ObjectMapping", RKLogLevelTrace);
        RKLogConfigureByName("RestKit/Network", RKLogLevelTrace);
    

    RKLog is implemented with Aren Harren's lcl_log (see http://0xc0.de/LibComponentLogging) library. I just briefly looked through the code for lcl and I didn't see any code that would prevent it from printing in a production version, so I would ensure that my RKLog code does not appear in production code.