code: public void initialize(PropertyProvider propertyProvider) {
  
          host = propertyProvider.getProperty(PropertyProvider.PROPERTY_HOST);
          if (host == null) {
              host = propertyProvider.getProperty(PropertyProvider.PROPERTY_GRAYLOG_HOST);
          }
  
          String port = propertyProvider.getProperty(PropertyProvider.PROPERTY_PORT);
          if (port == null) {
              port = propertyProvider.getProperty(PropertyProvider.PROPERTY_GRAYLOG_PORT);
          }
  
          if (port != null && !"".equals(port)) {
              this.port = Integer.parseInt(port);
          }
  
          originHost = propertyProvider.getProperty(PropertyProvider.PROPERTY_ORIGIN_HOST);
          setExtractStackTrace(propertyProvider.getProperty(PropertyProvider.PROPERTY_EXTRACT_STACKTRACE));
          setFilterStackTrace("true".equalsIgnoreCase(propertyProvider.getProperty(PropertyProvider.PROPERTY_FILTER_STACK_TRACE)));
  
          String includeLogMessageParameters = propertyProvider
                  .getProperty(PropertyProvider.PROPERTY_INCLUDE_LOG_MESSAGE_PARAMETERS);
          if (includeLogMessageParameters != null && !includeLogMessageParameters.trim().equals("")) {
              setIncludeLogMessageParameters("true".equalsIgnoreCase(includeLogMessageParameters));
          }
  
          setupStaticFields(propertyProvider);
          setupAdditionalFieldTypes(propertyProvider);
          facility = propertyProvider.getProperty(PropertyProvider.PROPERTY_FACILITY);
          String version = propertyProvider.getProperty(PropertyProvider.PROPERTY_VERSION);
  
          if (version != null && !"".equals(version)) {
              this.version = version;
          }
  
          String messageSize = propertyProvider.getProperty(PropertyProvider.PROPERTY_MAX_MESSAGE_SIZE);
          if (messageSize != null) {
              maximumMessageSize = Integer.parseInt(messageSize);
          }
  
          String timestampPattern = propertyProvider.getProperty(PropertyProvider.PROPERTY_TIMESTAMP_PATTERN);
          if (timestampPattern != null && !"".equals(timestampPattern)) {
              this.timestampPattern = timestampPattern;
          }
      }
docs: Initialize the {@link GelfMessageAssembler} from a property provider.
  
  @param propertyProvider property provider to obtain configuration properties