code: @Override
      public void publishLogRecord(LogRecord logRecord) {
          String formattedMsg = null;
          String formattedVerboseMsg = null;
  
          Level level = logRecord.getLevel();
          int levelValue = level.intValue();
  
          if (levelValue >= Level.INFO.intValue()) {
              formattedMsg = formatter.formatMessage(logRecord);
              formattedVerboseMsg = formatter.formatVerboseMessage(logRecord, formattedMsg);
  
              RoutedMessage routedMessage = null;
              if (externalMessageRouter.get() != null || internalMessageRouter.get() != null) {
                  String message = formatter.messageLogFormat(logRecord, formattedVerboseMsg);
                  routedMessage = new RoutedMessageImpl(formattedMsg, formattedVerboseMsg, message, logRecord);
              } else {
                  routedMessage = new RoutedMessageImpl(formattedMsg, formattedVerboseMsg, null, logRecord);
              }
              // Look for external log handlers. They may suppress "normal" log
              // processing, which would prevent it from showing up in other logs.
              // This has to be checked in this method: direct invocation of system.out
              // and system.err are not subject to message routing.
              boolean logNormally = invokeMessageRouters(routedMessage);
              if (!logNormally)
                  return;
  
              trWriter.repositoryPublish(logRecord);
  
              //If any messages configured to be hidden then those will not be written to console.log and will be redirected to logdata/tracedata
              if (isMessageHidden(formattedMsg)) {
                  return;
              }
  
              if (logSource != null) {
                  publishToLogSource(routedMessage);
              }
          }
      }
docs: {@inheritDoc}