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 .