code: public void enableDefaultSlf4jLoggingOfOutputData() {
          addSlf4jLogMessageConsumer((logMessage, ctx) -> {
              if (ctx.getLevel().equals(DEBUG)) {
                  ctx.getLogger().debug(logMessage);
              } else {
                  ctx.getLogger().info(logMessage);
              }
          });
      }
docs: Enables server output data logging through
  <a href="http://slf4j.org">SLF4J</a> loggers. This allow server output
  data to be configured with your preferred logging frameworks (e.g.
  java.util.logging, logback, log4j).
  
  <p>NOTE1: You might want to call method {@link #clearOutPutStreams()} before
  calling this method.<br>
  NOTE2: it is required that {@code --log-timestamp} server flag is
  {@code false}.
  
  <p>By default log messages are:
  <ul>
  <li>logged at {@code INFO} level, unless log message is pre-fixed by
  {@code [debug]} then logged at {@code DEBUG} level.</li>
  <li>logged by a <a href="http://slf4j.org">SLF4J</a> logger instance with
  a name corresponding to the appium sub module as prefixed in log message
  (logger name is transformed to lower case, no spaces and prefixed with
  "appium.service.").</li>
  </ul>
  Example log-message: "[ADB] Cannot read version codes of " is logged by
  logger: {@code appium.service.adb} at level {@code INFO}.
  <br>
  Example log-message: "[debug] [XCUITest] Xcode version set to 'x.y.z' "
  is logged by logger {@code appium.service.xcuitest} at level
  {@code DEBUG}.
  <br>
  
  @see #addSlf4jLogMessageConsumer(BiConsumer)