Disabling logging in release builds with NDK

Options
liortal53
liortal53
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

  • Kaiserludi
    Options
    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.