test_class.declarator: DEFAULT_MDC = new HashMap<>()
test_class.modifier: private static final
test_class.original_string: private static final Map<String, Object> DEFAULT_MDC = new HashMap<>();
test_class.type: Map<String, Object>
test_class.var_name: DEFAULT_MDC
test_class.declarator: KNOWN_KEY_1 = "key-1"
test_class.modifier: private static final
test_class.original_string: private static final String KNOWN_KEY_1 = "key-1";
test_class.type: String
test_class.var_name: KNOWN_KEY_1
test_class.declarator: KNOWN_KEY_2 = "key-2"
test_class.modifier: private static final
test_class.original_string: private static final String KNOWN_KEY_2 = "key-2";
test_class.type: String
test_class.var_name: KNOWN_KEY_2
test_class.declarator: KNOWN_VALUE_1 = "value-1"
test_class.modifier: private static final
test_class.original_string: private static final String KNOWN_VALUE_1 = "value-1";
test_class.type: String
test_class.var_name: KNOWN_VALUE_1
test_class.declarator: KNOWN_VALUE_2 = "value-2"
test_class.modifier: private static final
test_class.original_string: private static final String KNOWN_VALUE_2 = "value-2";
test_class.type: String
test_class.var_name: KNOWN_VALUE_2
test_class.declarator: log
test_class.modifier: private
test_class.original_string: private DiagnosticLoggingAdapter log;
test_class.type: DiagnosticLoggingAdapter
test_class.var_name: log
test_class.file: services/utils/akka/src/test/java/org/eclipse/ditto/services/utils/akka/LogUtilTest.java
test_class.identifier: LogUtilTest
test_case.body: @Test
      public void enhanceLogWithCustomField() {
          final String otherFieldName = "other-field";
          final String otherFieldValue = "other-value";
  
          final Map<String, Object> expectedMap = new HashMap<>(DEFAULT_MDC);
          expectedMap.put(otherFieldName, otherFieldValue);
  
          LogUtil.enhanceLogWithCustomField(log, otherFieldName, otherFieldValue);
  
          Mockito.verify(log).setMDC(expectedMap);
      }
test_case.class_method_signature: LogUtilTest.enhanceLogWithCustomField()
test_case.full_signature: @Test public void enhanceLogWithCustomField()
test_case.identifier: enhanceLogWithCustomField
test_case.invocations: put enhanceLogWithCustomField setMDC verify
test_case.modifiers: @Test public
test_case.parameters: ()
test_case.return: void
test_case.signature: void enhanceLogWithCustomField()
focal_class.declarator: X_CORRELATION_ID = "x-correlation-id"
focal_class.modifier: public static final
focal_class.original_string: public static final String X_CORRELATION_ID = "x-correlation-id";
focal_class.type: String
focal_class.var_name: X_CORRELATION_ID
focal_class.file: services/utils/akka/src/main/java/org/eclipse/ditto/services/utils/akka/LogUtil.java
focal_class.identifier: LogUtil
focal_class.class_method_signature: LogUtil.LogUtil()
focal_class.full_signature: private  LogUtil()
focal_class.identifier: LogUtil
focal_class.modifiers: private
focal_class.parameters: ()
focal_class.signature:  LogUtil()
focal_class.class_method_signature: LogUtil.obtain(final Actor logSource)
focal_class.full_signature: public static DiagnosticLoggingAdapter obtain(final Actor logSource)
focal_class.identifier: obtain
focal_class.modifiers: public static
focal_class.parameters: (final Actor logSource)
focal_class.return: DiagnosticLoggingAdapter
focal_class.signature: DiagnosticLoggingAdapter obtain(final Actor logSource)
focal_class.class_method_signature: LogUtil.enhanceLogWithCorrelationId(final DiagnosticLoggingAdapter loggingAdapter,
              final WithDittoHeaders<?> withDittoHeaders, final MdcField... additionalMdcFields)
focal_class.full_signature: public static void enhanceLogWithCorrelationId(final DiagnosticLoggingAdapter loggingAdapter,
              final WithDittoHeaders<?> withDittoHeaders, final MdcField... additionalMdcFields)
focal_class.identifier: enhanceLogWithCorrelationId
focal_class.modifiers: public static
focal_class.parameters: (final DiagnosticLoggingAdapter loggingAdapter,
              final WithDittoHeaders<?> withDittoHeaders, final MdcField... additionalMdcFields)
focal_class.return: void
focal_class.signature: void enhanceLogWithCorrelationId(final DiagnosticLoggingAdapter loggingAdapter,
              final WithDittoHeaders<?> withDittoHeaders, final MdcField... additionalMdcFields)
focal_class.class_method_signature: LogUtil.enhanceLogWithCorrelationId(final DiagnosticLoggingAdapter loggingAdapter,
              final DittoHeaders dittoHeaders, final MdcField... additionalMdcFields)
focal_class.full_signature: public static void enhanceLogWithCorrelationId(final DiagnosticLoggingAdapter loggingAdapter,
              final DittoHeaders dittoHeaders, final MdcField... additionalMdcFields)
focal_class.identifier: enhanceLogWithCorrelationId
focal_class.modifiers: public static
focal_class.parameters: (final DiagnosticLoggingAdapter loggingAdapter,
              final DittoHeaders dittoHeaders, final MdcField... additionalMdcFields)
focal_class.return: void
focal_class.signature: void enhanceLogWithCorrelationId(final DiagnosticLoggingAdapter loggingAdapter,
              final DittoHeaders dittoHeaders, final MdcField... additionalMdcFields)
focal_class.class_method_signature: LogUtil.enhanceLogWithCorrelationId(final DiagnosticLoggingAdapter loggingAdapter,
              final Optional<String> correlationId, final MdcField... additionalMdcFields)
focal_class.full_signature: public static void enhanceLogWithCorrelationId(final DiagnosticLoggingAdapter loggingAdapter,
              final Optional<String> correlationId, final MdcField... additionalMdcFields)
focal_class.identifier: enhanceLogWithCorrelationId
focal_class.modifiers: public static
focal_class.parameters: (final DiagnosticLoggingAdapter loggingAdapter,
              final Optional<String> correlationId, final MdcField... additionalMdcFields)
focal_class.return: void
focal_class.signature: void enhanceLogWithCorrelationId(final DiagnosticLoggingAdapter loggingAdapter,
              final Optional<String> correlationId, final MdcField... additionalMdcFields)
focal_class.class_method_signature: LogUtil.enhanceLogWithCustomField(final MdcField mdcField)
focal_class.full_signature: public static void enhanceLogWithCustomField(final MdcField mdcField)
focal_class.identifier: enhanceLogWithCustomField
focal_class.modifiers: public static
focal_class.parameters: (final MdcField mdcField)
focal_class.return: void
focal_class.signature: void enhanceLogWithCustomField(final MdcField mdcField)
focal_class.class_method_signature: LogUtil.enhanceLogWithCorrelationId(final DiagnosticLoggingAdapter loggingAdapter,
              final CharSequence correlationId, final MdcField... additionalMdcFields)
focal_class.full_signature: public static void enhanceLogWithCorrelationId(final DiagnosticLoggingAdapter loggingAdapter,
              final CharSequence correlationId, final MdcField... additionalMdcFields)
focal_class.identifier: enhanceLogWithCorrelationId
focal_class.modifiers: public static
focal_class.parameters: (final DiagnosticLoggingAdapter loggingAdapter,
              final CharSequence correlationId, final MdcField... additionalMdcFields)
focal_class.return: void
focal_class.signature: void enhanceLogWithCorrelationId(final DiagnosticLoggingAdapter loggingAdapter,
              final CharSequence correlationId, final MdcField... additionalMdcFields)
focal_class.class_method_signature: LogUtil.enhanceLogWithCustomField(final DiagnosticLoggingAdapter loggingAdapter,
              final String fieldName,
              @Nullable final CharSequence fieldValue,
              final MdcField... additionalMdcFields)
focal_class.full_signature: public static void enhanceLogWithCustomField(final DiagnosticLoggingAdapter loggingAdapter,
              final String fieldName,
              @Nullable final CharSequence fieldValue,
              final MdcField... additionalMdcFields)
focal_class.identifier: enhanceLogWithCustomField
focal_class.modifiers: public static
focal_class.parameters: (final DiagnosticLoggingAdapter loggingAdapter,
              final String fieldName,
              @Nullable final CharSequence fieldValue,
              final MdcField... additionalMdcFields)
focal_class.return: void
focal_class.signature: void enhanceLogWithCustomField(final DiagnosticLoggingAdapter loggingAdapter,
              final String fieldName,
              @Nullable final CharSequence fieldValue,
              final MdcField... additionalMdcFields)
focal_class.class_method_signature: LogUtil.enhanceMdcWithAdditionalFields(final Map<String, Object> mdc,
              final MdcField... additionalMdcFields)
focal_class.full_signature: private static void enhanceMdcWithAdditionalFields(final Map<String, Object> mdc,
              final MdcField... additionalMdcFields)
focal_class.identifier: enhanceMdcWithAdditionalFields
focal_class.modifiers: private static
focal_class.parameters: (final Map<String, Object> mdc,
              final MdcField... additionalMdcFields)
focal_class.return: void
focal_class.signature: void enhanceMdcWithAdditionalFields(final Map<String, Object> mdc,
              final MdcField... additionalMdcFields)
focal_class.class_method_signature: LogUtil.enhanceMdcWithAdditionalField(final Map<String, Object> mdc, final String fieldName,
              @Nullable final CharSequence fieldValue)
focal_class.full_signature: private static void enhanceMdcWithAdditionalField(final Map<String, Object> mdc, final String fieldName,
              @Nullable final CharSequence fieldValue)
focal_class.identifier: enhanceMdcWithAdditionalField
focal_class.modifiers: private static
focal_class.parameters: (final Map<String, Object> mdc, final String fieldName,
              @Nullable final CharSequence fieldValue)
focal_class.return: void
focal_class.signature: void enhanceMdcWithAdditionalField(final Map<String, Object> mdc, final String fieldName,
              @Nullable final CharSequence fieldValue)
focal_class.class_method_signature: LogUtil.enhanceLogWithCorrelationId(final WithDittoHeaders<?> withDittoHeaders)
focal_class.full_signature: public static void enhanceLogWithCorrelationId(final WithDittoHeaders<?> withDittoHeaders)
focal_class.identifier: enhanceLogWithCorrelationId
focal_class.modifiers: public static
focal_class.parameters: (final WithDittoHeaders<?> withDittoHeaders)
focal_class.return: void
focal_class.signature: void enhanceLogWithCorrelationId(final WithDittoHeaders<?> withDittoHeaders)
focal_class.class_method_signature: LogUtil.enhanceLogWithCorrelationId(final DittoHeaders dittoHeaders)
focal_class.full_signature: public static void enhanceLogWithCorrelationId(final DittoHeaders dittoHeaders)
focal_class.identifier: enhanceLogWithCorrelationId
focal_class.modifiers: public static
focal_class.parameters: (final DittoHeaders dittoHeaders)
focal_class.return: void
focal_class.signature: void enhanceLogWithCorrelationId(final DittoHeaders dittoHeaders)
focal_class.class_method_signature: LogUtil.enhanceLogWithCorrelationIdOrRandom(final WithDittoHeaders<?> withDittoHeaders)
focal_class.full_signature: public static void enhanceLogWithCorrelationIdOrRandom(final WithDittoHeaders<?> withDittoHeaders)
focal_class.identifier: enhanceLogWithCorrelationIdOrRandom
focal_class.modifiers: public static
focal_class.parameters: (final WithDittoHeaders<?> withDittoHeaders)
focal_class.return: void
focal_class.signature: void enhanceLogWithCorrelationIdOrRandom(final WithDittoHeaders<?> withDittoHeaders)
focal_class.class_method_signature: LogUtil.enhanceLogWithCorrelationIdOrRandom(final DittoHeaders dittoHeaders)
focal_class.full_signature: public static void enhanceLogWithCorrelationIdOrRandom(final DittoHeaders dittoHeaders)
focal_class.identifier: enhanceLogWithCorrelationIdOrRandom
focal_class.modifiers: public static
focal_class.parameters: (final DittoHeaders dittoHeaders)
focal_class.return: void
focal_class.signature: void enhanceLogWithCorrelationIdOrRandom(final DittoHeaders dittoHeaders)
focal_class.class_method_signature: LogUtil.enhanceLogWithCorrelationId(final Optional<String> correlationId)
focal_class.full_signature: public static void enhanceLogWithCorrelationId(final Optional<String> correlationId)
focal_class.identifier: enhanceLogWithCorrelationId
focal_class.modifiers: public static
focal_class.parameters: (final Optional<String> correlationId)
focal_class.return: void
focal_class.signature: void enhanceLogWithCorrelationId(final Optional<String> correlationId)
focal_class.class_method_signature: LogUtil.enhanceLogWithCorrelationId(@Nullable final CharSequence correlationId)
focal_class.full_signature: public static void enhanceLogWithCorrelationId(@Nullable final CharSequence correlationId)
focal_class.identifier: enhanceLogWithCorrelationId
focal_class.modifiers: public static
focal_class.parameters: (@Nullable final CharSequence correlationId)
focal_class.return: void
focal_class.signature: void enhanceLogWithCorrelationId(@Nullable final CharSequence correlationId)
focal_class.class_method_signature: LogUtil.getCorrelationId()
focal_class.full_signature: public static Optional<String> getCorrelationId()
focal_class.identifier: getCorrelationId
focal_class.modifiers: public static
focal_class.parameters: ()
focal_class.return: Optional<String>
focal_class.signature: Optional<String> getCorrelationId()
focal_class.class_method_signature: LogUtil.getCorrelationId(final Supplier<String> defaultCorrelationIdSupplier)
focal_class.full_signature: public static String getCorrelationId(final Supplier<String> defaultCorrelationIdSupplier)
focal_class.identifier: getCorrelationId
focal_class.modifiers: public static
focal_class.parameters: (final Supplier<String> defaultCorrelationIdSupplier)
focal_class.return: String
focal_class.signature: String getCorrelationId(final Supplier<String> defaultCorrelationIdSupplier)
focal_class.class_method_signature: LogUtil.removeCorrelationId()
focal_class.full_signature: public static void removeCorrelationId()
focal_class.identifier: removeCorrelationId
focal_class.modifiers: public static
focal_class.parameters: ()
focal_class.return: void
focal_class.signature: void removeCorrelationId()
focal_class.class_method_signature: LogUtil.removeCorrelationId(final DiagnosticLoggingAdapter loggingAdapter)
focal_class.full_signature: private static void removeCorrelationId(final DiagnosticLoggingAdapter loggingAdapter)
focal_class.identifier: removeCorrelationId
focal_class.modifiers: private static
focal_class.parameters: (final DiagnosticLoggingAdapter loggingAdapter)
focal_class.return: void
focal_class.signature: void removeCorrelationId(final DiagnosticLoggingAdapter loggingAdapter)
focal_class.class_method_signature: LogUtil.removeCustomField(final DiagnosticLoggingAdapter loggingAdapter, final String fieldName)
focal_class.full_signature: public static void removeCustomField(final DiagnosticLoggingAdapter loggingAdapter, final String fieldName)
focal_class.identifier: removeCustomField
focal_class.modifiers: public static
focal_class.parameters: (final DiagnosticLoggingAdapter loggingAdapter, final String fieldName)
focal_class.return: void
focal_class.signature: void removeCustomField(final DiagnosticLoggingAdapter loggingAdapter, final String fieldName)
focal_class.class_method_signature: LogUtil.newMdcField(final String name, @Nullable final String value)
focal_class.full_signature: public static MdcField newMdcField(final String name, @Nullable final String value)
focal_class.identifier: newMdcField
focal_class.modifiers: public static
focal_class.parameters: (final String name, @Nullable final String value)
focal_class.return: MdcField
focal_class.signature: MdcField newMdcField(final String name, @Nullable final String value)
focal_class.class_method_signature: LogUtil.getMDC(final DiagnosticLoggingAdapter loggingAdapter)
focal_class.full_signature: private static Map<String, Object> getMDC(final DiagnosticLoggingAdapter loggingAdapter)
focal_class.identifier: getMDC
focal_class.modifiers: private static
focal_class.parameters: (final DiagnosticLoggingAdapter loggingAdapter)
focal_class.return: Map<String, Object>
focal_class.signature: Map<String, Object> getMDC(final DiagnosticLoggingAdapter loggingAdapter)
focal_method.body: public static void enhanceLogWithCustomField(final MdcField mdcField) {
          MDC.put(mdcField.getName(), String.valueOf(mdcField.getValue()));
      }
focal_method.class_method_signature: LogUtil.enhanceLogWithCustomField(final MdcField mdcField)
focal_method.full_signature: public static void enhanceLogWithCustomField(final MdcField mdcField)
focal_method.identifier: enhanceLogWithCustomField
focal_method.invocations: put getName valueOf getValue
focal_method.modifiers: public static
focal_method.parameters: (final MdcField mdcField)
focal_method.return: void
focal_method.signature: void enhanceLogWithCustomField(final MdcField mdcField)