Disabling logging in release builds with NDK

liortal53liortal53
edited January 2014 in Native
Hi,

We're using the NDK library and we'd like to disable all logging that happens inside the library.

What do i need to do? how can i configure it ?

Comments

  • Hi lior.

    Release builds of the lib don't have any logging at all. It gets stripped out for release builds via the preprocessor when building the libs. You should use debug builds of the lib for debug builds of your app and release builds of the lib for release builds of the app.

    Just for the record:
    For debug builds you could deactivate the logging at runtime by just setting the logging level to OFF.
Sign In or Register to comment.