Need Help with Setting Up Logging in MIT App Inventor

Hello everyone,

I’m a new contributor to MIT App Inventor and have recently set up the project on my local system. As I start exploring and contributing, I want to ensure I can effectively debug and resolve issues by using logging.

Here’s how I currently start the server:

$ your-google-cloud-SDK-folder/bin/java_dev_appserver.sh --port=8888 --address=0.0.0.0 appengine/build/war/  

Could someone guide me on how to properly set up logging in MIT App Inventor? Specifically, I’d like to understand:

  1. How to configure logs so they display meaningful information in the terminal while the server is running.
  2. Any best practices for adding logs while working on features or debugging issues.

Your guidance will be a great help for me as a new contributor.

Thank you in advance!

For anything in the appengine module, I'd recommend using the standard Java logging utility, e.g.:

import java.util.logging.Logger;

public class Foo {
  private static final Logger LOG = Logger.getLogger(Foo.class.getName());

  public void doFoo() {
    LOG.info("Hello world");
  }
}
1 Like

This topic was automatically closed 7 days after the last reply. New replies are no longer allowed.