Created
February 6, 2014 00:52
-
-
Save dthyresson/8836481 to your computer and use it in GitHub Desktop.
Getting RKLogConfigureByName working in RubyMotion
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# http://www.pragmaux.com/post/42520342525/getting-rklogconfigurebyname-working-in-rubymotion | |
def init_restkit_logging | |
#define RKLogLevelOff -> RKlcl_vOff | |
#define RKLogLevelCritical -> RKlcl_vCritical | |
#define RKLogLevelError -> RKlcl_vError | |
#define RKLogLevelWarning -> RKlcl_vWarning | |
#define RKLogLevelInfo -> RKlcl_vInfo | |
#define RKLogLevelDebug -> RKlcl_vDebug | |
#define RKLogLevelTrace -> RKlcl_vTrace | |
# "restkit" "RestKit" | |
# "restkit.network" "RestKit/Network" | |
# "restkit.network.cache" "RestKit/Network/Cache" | |
# "restkit.network.queue" "RestKit/Network/Queue" | |
# "restkit.network.reachability" "RestKit/Network/Reachability" | |
# "restkit.object_mapping" "RestKit/ObjectMapping" | |
# "restkit.core_data" "RestKit/CoreData" | |
# "restkit.core_data.cache" "RestKit/CoreData/Cache" | |
# "restkit.core_data.search_engine" "RestKit/CoreData/SearchEngine" | |
# "restkit.support" "RestKit/Support" | |
# "restkit.support.parsers" "RestKit/Support/Parsers" | |
# "restkit.three20" "RestKit/Three20" | |
# "restkit.ui" "RestKit/UI" | |
# "restkit.testing" "RestKit/Testing" | |
# "app" "App" | |
RKlcl_configure_by_name("Restkit", RKlcl_vDebug) | |
RKlcl_configure_by_name("App", RKlcl_vDebug) | |
RKlcl_configure_by_name("RestKit/Network*", RKlcl_vTrace) | |
RKlcl_configure_by_name("RestKit/ObjectMapping", RKlcl_vTrace) | |
end |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment