code: @PostConstruct
      public final void addMetricsAppenderToLogback() {
          final LoggerContext factory = (LoggerContext) LoggerFactory.getILoggerFactory();
          final Logger root = factory.getLogger(Logger.ROOT_LOGGER_NAME);
  
          final InstrumentedAppender metrics = new InstrumentedAppender(this.metricRegistry);
          metrics.setContext(root.getLoggerContext());
          metrics.start();
          root.addAppender(metrics);
      }
docs: Add an appender to Logback logging framework that will track the types of log messages made.