docs: public void messageLogged(final BuildEvent event) {
          int priority = event.getPriority();
          // Filter out messages based on priority
          if (priority <= msgOutputLevel) {
  
              final String msg = expandMessage(event, event.getMessage());
  
              if (priority != Project.MSG_ERR) {
                  printMessage(msg, out, priority);
              } else {
                  printMessage(msg, err, priority);
              }
              log(msg);
          }
      }