Splunk MINT SDK for Android (Legacy)

Splunk MINT SDK for Android Developer Guide

Download manual as PDF

Download topic as PDF

Report debugging messages

You can display debug messages during testing to examine application errors and debug information before you deploy to production. However, you should disable this feature in production.

  • To display debug messages, use the enableDebugLog() method as follows:
  • Mint.enableDebugLog();

Example code

Use a public static Boolean to integrate with a build system. A JVM can detect this setting so you can remove unused code before deploying to production.

public void onCreate(Bundle savedInstanceState) {

    // TODO: Update with your API key
    Mint.initAndStartSession(this.getApplication(), "YOUR_API_KEY");


        Log.info("myapp", "onCreate called!");
Last modified on 28 January, 2019
Report LogCat output
View memory trim notifications

This documentation applies to the following versions of Splunk MINT SDK for Android (Legacy): 5.2.x

Was this documentation topic helpful?

Enter your email address, and someone from the documentation team will respond to you:

Please provide your comments here. Ask a question or make a suggestion.

You must be logged into splunk.com in order to post comments. Log in now.

Please try to keep this discussion focused on the content covered in this documentation topic. If you have a more general question about Splunk functionality or are experiencing a difficulty with Splunk, consider posting a question to Splunkbase Answers.

0 out of 1000 Characters