code: public static void warnFormatted(final Exception exception) {
          logWriterInstance.warn(exception);
  
          UaiWebSocketLogManager.addLogText("[WARN] An exception just happened: " + exception.getMessage());
      }
docs: Wil log a text with the WARN level.