code: private static synchronized StreamHandler getStreamHandler() {
      if (methodHandler == null) {
        methodHandler = new ConsoleHandler();
        methodHandler.setFormatter(new Formatter() {
          @Override
          public String format(LogRecord record) {
            return record.getMessage() + "\n";
          }
        });
        methodHandler.setLevel(Level.FINE);
      }
      return methodHandler;
    }
docs: running in App Engine