public static void setDynamicMdcFields(String spec, GelfMessageAssembler gelfMessageAssembler) {
        if (null != spec) {
            String[] fields = spec.split(MULTI_VALUE_DELIMITTER);

            for (String field : fields) {
                gelfMessageAssembler.addField(new DynamicMdcMessageField(field.trim()));
            }
        }
    }
public static void setDynamicMdcFields ( String spec , GelfMessageAssembler gelfMessageAssembler ) { if ( null != spec ) { String [ ] fields = spec . split ( MULTI_VALUE_DELIMITTER ) ; for ( String field : fields ) { gelfMessageAssembler . addField ( new DynamicMdcMessageField ( field . trim ( ) ) ) ; } } }
Set the dynamic MDC fields.

@param spec field, .*FieldSuffix, fieldPrefix.*
@param gelfMessageAssembler the {@link GelfMessageAssembler}.