code: protected void logException(CharSequence msg, Exception e) {
      System.err.println(msg + ":" + e.getMessage());
      e.printStackTrace();
    }
docs: Logs an exception with an introductory message in addition to the
  exception's getMessage().
  @param msg message
  @param e   exception
  @see Exception#getMessage