code: public static void logMethodCalls() {
      Logger logger = Logger.getLogger(Datastore.class.getName());
      logger.setLevel(Level.FINE);
      if (!Arrays.asList(logger.getHandlers()).contains(getStreamHandler())) {
        logger.addHandler(getStreamHandler());
      }
    }
docs: Starts logging datastore method calls to the console. (Useful within tests.)