Logging in native Android (Java)
Android MobileFirst Platform SDK cannot persistently capture log data until the
com.worklight.common.Logger.setContext(Context) method is called.
Logging example for native Android (Java):
Outputs to LogCat
API calls for specific tasks
Log capture is enabled by default. To turn log capture on or off:
The default capture level is DEBUG in development and FATAL in production. To control the capture level (verbosity):
Log sending is enabled by default. To turn automatic log sending on or off:
For more information about
Logger API, see the API reference in the user documentation
Inclusive terminology note: The Mobile First Platform team is making changes to support the IBM® initiative to replace racially biased and other discriminatory language in our code and content with more inclusive language. While IBM values the use of inclusive language, terms that are outside of IBM's direct influence are sometimes required for the sake of maintaining user understanding. As other industry leaders join IBM in embracing the use of inclusive language, IBM will continue to update the documentation to reflect those changes.