@Override
    public void format(LogEvent event, StringBuilder toAppendTo) {
        StringBuilder message = new StringBuilder(event.getMessage().getFormattedMessage());
        MaskDataUtils.mask(message);
        toAppendTo.append(message);
    }
Constructs an instance of LoggingEventPatternConverter.

@param name name of converter.
@param style CSS style for output.
inlong-dataproxy/dataproxy-source/src/main/java/org/apache/inlong/dataproxy/config/LogMaskerConverter.java