code: public static void logStderr(String msg, Throwable e)
    {
      try {
        long now = CurrentTime.currentTime();
      
        //msg = QDate.formatLocal(now, "[%Y-%m-%d %H:%M:%S] ") + msg;
  
        _origSystemErr.println(msg);
  
        //e.printStackTrace(_origSystemErr.getPrintWriter());
  
        _origSystemErr.flush();
      } catch (Throwable e1) {
      }
    }
docs: Logs a message to the original stderr in cases where java.util.logging
  is dangerous, e.g. in the logging code itself.