Skip to content

feat: support customization for MDC serializer #141

feat: support customization for MDC serializer

feat: support customization for MDC serializer #141

GitHub Actions / Test Report failed Dec 11, 2024 in 0s

160 passed, 17 failed and 0 skipped

Tests failed

Report Passed Failed Skipped Time
ecs-logging-core/target/surefire-reports/TEST-co.elastic.logging.EcsJsonSerializerTest.xml 9βœ”οΈ 264ms
ecs-logging-core/target/surefire-reports/TEST-co.elastic.logging.TimestampSerializerTest.xml 2βœ”οΈ 708ms
jboss-logmanager-ecs-formatter/target/surefire-reports/TEST-co.elastic.logging.jboss.logmanager.EcsFormatterTest.xml 3βœ”οΈ 12ms
jboss-logmanager-ecs-formatter/target/surefire-reports/TEST-co.elastic.logging.jboss.logmanager.JBossLogManagerTest.xml 10βœ”οΈ 365ms
log4j-ecs-layout/target/surefire-reports/TEST-co.elastic.logging.log4j.Log4jEcsLayoutIntegrationTest.xml 10βœ”οΈ 72ms
log4j-ecs-layout/target/surefire-reports/TEST-co.elastic.logging.log4j.Log4jEcsLayoutTest.xml 10βœ”οΈ 430ms
log4j2-ecs-layout/target/surefire-reports/TEST-co.elastic.logging.log4j2.CurrentLog4j2EcsLayoutTest.xml 20βœ”οΈ 183ms
log4j2-ecs-layout/target/surefire-reports/TEST-co.elastic.logging.log4j2.EcsLayoutWithExceptionPatternTest.xml 17βœ”οΈ 480ms
log4j2-ecs-layout/target/surefire-reports/TEST-co.elastic.logging.log4j2.EcsLayoutWithStackTraceAsArrayTest.xml 17βœ”οΈ 126ms
log4j2-ecs-layout/target/surefire-reports/TEST-co.elastic.logging.log4j2.Log4j2EcsBuilderTest.xml 1βœ”οΈ 237ms
log4j2-ecs-layout/target/surefire-reports/TEST-co.elastic.logging.log4j2.Log4j2EcsLayoutIntegrationTest.xml 17βœ”οΈ 116ms
log4j2-legacy-tests/target/surefire-reports/TEST-co.elastic.logging.log4j2.LegacyLog4j2EcsLayoutTest.xml 17❌ 445ms
logback-ecs-encoder/target/surefire-reports/TEST-co.elastic.logging.logback.EcsEncoderIntegrationTest.xml 11βœ”οΈ 70ms
logback-ecs-encoder/target/surefire-reports/TEST-co.elastic.logging.logback.EcsEncoderTest.xml 11βœ”οΈ 320ms
logback-ecs-encoder/target/surefire-reports/TEST-co.elastic.logging.logback.EcsEncoderWithCustomThrowableConverterIntegrationTest.xml 11βœ”οΈ 167ms
logback-ecs-encoder/target/surefire-reports/TEST-co.elastic.logging.logback.EcsEncoderWithStacktraceAsArrayTest.xml 11βœ”οΈ 31ms

βœ”οΈΒ ecs-logging-core/target/surefire-reports/TEST-co.elastic.logging.EcsJsonSerializerTest.xml

9 tests were completed in 264ms with 9 passed, 0 failed and 0 skipped.

Test suite Passed Failed Skipped Time
co.elastic.logging.EcsJsonSerializerTest 9βœ”οΈ 264ms

βœ”οΈΒ co.elastic.logging.EcsJsonSerializerTest

βœ”οΈ testEscaping
βœ”οΈ serializeNullDoesNotThrowAnException
βœ”οΈ serializeExceptionWithStackTraceAsArray
βœ”οΈ testRemoveIfEndsWith
βœ”οΈ serializeExceptionWithNullMessage
βœ”οΈ serializeExceptionAsArray
βœ”οΈ serializeException
βœ”οΈ serializeExceptionAsString
βœ”οΈ serializeExceptionWithSingleLineStackTraceAsArray

βœ”οΈΒ ecs-logging-core/target/surefire-reports/TEST-co.elastic.logging.TimestampSerializerTest.xml

2 tests were completed in 708ms with 2 passed, 0 failed and 0 skipped.

Test suite Passed Failed Skipped Time
co.elastic.logging.TimestampSerializerTest 2βœ”οΈ 708ms

βœ”οΈΒ co.elastic.logging.TimestampSerializerTest

βœ”οΈ testSerializeWithCustomLocale
βœ”οΈ testSerializeEpochTimestampAsIsoDateTime

βœ”οΈΒ jboss-logmanager-ecs-formatter/target/surefire-reports/TEST-co.elastic.logging.jboss.logmanager.EcsFormatterTest.xml

3 tests were completed in 12ms with 3 passed, 0 failed and 0 skipped.

Test suite Passed Failed Skipped Time
co.elastic.logging.jboss.logmanager.EcsFormatterTest 3βœ”οΈ 12ms

βœ”οΈΒ co.elastic.logging.jboss.logmanager.EcsFormatterTest

βœ”οΈ testMultipleNDCInformationLogging
βœ”οΈ testExceptionLogging
βœ”οΈ testSingleNDCInformationLogging

βœ”οΈΒ jboss-logmanager-ecs-formatter/target/surefire-reports/TEST-co.elastic.logging.jboss.logmanager.JBossLogManagerTest.xml

10 tests were completed in 365ms with 10 passed, 0 failed and 0 skipped.

Test suite Passed Failed Skipped Time
co.elastic.logging.jboss.logmanager.JBossLogManagerTest 10βœ”οΈ 365ms

βœ”οΈΒ co.elastic.logging.jboss.logmanager.JBossLogManagerTest

βœ”οΈ testLogOrigin
βœ”οΈ testSimpleLog
βœ”οΈ testMdc
βœ”οΈ testThreadContext
βœ”οΈ testAdditionalFields
βœ”οΈ testMetadata
βœ”οΈ testLogExceptionNullMessage
βœ”οΈ testLogException
βœ”οΈ testThreadContextStack
βœ”οΈ testSimpleParameterizedLog

βœ”οΈΒ log4j-ecs-layout/target/surefire-reports/TEST-co.elastic.logging.log4j.Log4jEcsLayoutIntegrationTest.xml

10 tests were completed in 72ms with 10 passed, 0 failed and 0 skipped.

Test suite Passed Failed Skipped Time
co.elastic.logging.log4j.Log4jEcsLayoutIntegrationTest 10βœ”οΈ 72ms

βœ”οΈΒ co.elastic.logging.log4j.Log4jEcsLayoutIntegrationTest

βœ”οΈ testLogOrigin
βœ”οΈ testSimpleLog
βœ”οΈ testMdc
βœ”οΈ testThreadContext
βœ”οΈ testAdditionalFields
βœ”οΈ testMetadata
βœ”οΈ testLogExceptionNullMessage
βœ”οΈ testLogException
βœ”οΈ testThreadContextStack
βœ”οΈ testSimpleParameterizedLog

βœ”οΈΒ log4j-ecs-layout/target/surefire-reports/TEST-co.elastic.logging.log4j.Log4jEcsLayoutTest.xml

10 tests were completed in 430ms with 10 passed, 0 failed and 0 skipped.

Test suite Passed Failed Skipped Time
co.elastic.logging.log4j.Log4jEcsLayoutTest 10βœ”οΈ 430ms

βœ”οΈΒ co.elastic.logging.log4j.Log4jEcsLayoutTest

βœ”οΈ testLogOrigin
βœ”οΈ testSimpleLog
βœ”οΈ testMdc
βœ”οΈ testThreadContext
βœ”οΈ testAdditionalFields
βœ”οΈ testMetadata
βœ”οΈ testLogExceptionNullMessage
βœ”οΈ testLogException
βœ”οΈ testThreadContextStack
βœ”οΈ testSimpleParameterizedLog

βœ”οΈΒ log4j2-ecs-layout/target/surefire-reports/TEST-co.elastic.logging.log4j2.CurrentLog4j2EcsLayoutTest.xml

20 tests were completed in 183ms with 20 passed, 0 failed and 0 skipped.

Test suite Passed Failed Skipped Time
co.elastic.logging.log4j2.CurrentLog4j2EcsLayoutTest 20βœ”οΈ 183ms

βœ”οΈΒ co.elastic.logging.log4j2.CurrentLog4j2EcsLayoutTest

βœ”οΈ testLogOrigin
βœ”οΈ testSimpleLog
βœ”οΈ testMdc
βœ”οΈ testThreadContext
βœ”οΈ testAdditionalFields
βœ”οΈ testMetadata
βœ”οΈ testLogExceptionNullMessage
βœ”οΈ testLogException
βœ”οΈ testThreadContextStack
βœ”οΈ testSimpleParameterizedLog
βœ”οΈ testJsonMessageBoolean
βœ”οΈ testJsonMessageArray
βœ”οΈ testJsonMessageNumber
βœ”οΈ testJsonMessageString
βœ”οΈ testCustomPatternConverter
βœ”οΈ testAdditionalFieldsWithLookup
βœ”οΈ testMarker
βœ”οΈ testJsonMessageObject
βœ”οΈ testMapMessage
βœ”οΈ testParameterizedStructuredMessage

βœ”οΈΒ log4j2-ecs-layout/target/surefire-reports/TEST-co.elastic.logging.log4j2.EcsLayoutWithExceptionPatternTest.xml

17 tests were completed in 480ms with 17 passed, 0 failed and 0 skipped.

Test suite Passed Failed Skipped Time
co.elastic.logging.log4j2.EcsLayoutWithExceptionPatternTest 17βœ”οΈ 480ms

βœ”οΈΒ co.elastic.logging.log4j2.EcsLayoutWithExceptionPatternTest

βœ”οΈ testLogOrigin
βœ”οΈ testSimpleLog
βœ”οΈ testMdc
βœ”οΈ testThreadContext
βœ”οΈ testAdditionalFields
βœ”οΈ testMetadata
βœ”οΈ testThreadContextStack
βœ”οΈ testSimpleParameterizedLog
βœ”οΈ testJsonMessageBoolean
βœ”οΈ testJsonMessageArray
βœ”οΈ testJsonMessageNumber
βœ”οΈ testJsonMessageString
βœ”οΈ testCustomPatternConverter
βœ”οΈ testAdditionalFieldsWithLookup
βœ”οΈ testMarker
βœ”οΈ testLogExceptionNullMessage
βœ”οΈ testLogException

βœ”οΈΒ log4j2-ecs-layout/target/surefire-reports/TEST-co.elastic.logging.log4j2.EcsLayoutWithStackTraceAsArrayTest.xml

17 tests were completed in 126ms with 17 passed, 0 failed and 0 skipped.

Test suite Passed Failed Skipped Time
co.elastic.logging.log4j2.EcsLayoutWithStackTraceAsArrayTest 17βœ”οΈ 126ms

βœ”οΈΒ co.elastic.logging.log4j2.EcsLayoutWithStackTraceAsArrayTest

βœ”οΈ testLogOrigin
βœ”οΈ testSimpleLog
βœ”οΈ testMdc
βœ”οΈ testThreadContext
βœ”οΈ testAdditionalFields
βœ”οΈ testMetadata
βœ”οΈ testThreadContextStack
βœ”οΈ testSimpleParameterizedLog
βœ”οΈ testJsonMessageBoolean
βœ”οΈ testJsonMessageArray
βœ”οΈ testJsonMessageNumber
βœ”οΈ testJsonMessageString
βœ”οΈ testCustomPatternConverter
βœ”οΈ testAdditionalFieldsWithLookup
βœ”οΈ testMarker
βœ”οΈ testLogExceptionNullMessage
βœ”οΈ testLogException

βœ”οΈΒ log4j2-ecs-layout/target/surefire-reports/TEST-co.elastic.logging.log4j2.Log4j2EcsBuilderTest.xml

1 tests were completed in 237ms with 1 passed, 0 failed and 0 skipped.

Test suite Passed Failed Skipped Time
co.elastic.logging.log4j2.Log4j2EcsBuilderTest 1βœ”οΈ 237ms

βœ”οΈΒ co.elastic.logging.log4j2.Log4j2EcsBuilderTest

βœ”οΈ testAdditionalFieldsCanBeEmptyInBuilder

βœ”οΈΒ log4j2-ecs-layout/target/surefire-reports/TEST-co.elastic.logging.log4j2.Log4j2EcsLayoutIntegrationTest.xml

17 tests were completed in 116ms with 17 passed, 0 failed and 0 skipped.

Test suite Passed Failed Skipped Time
co.elastic.logging.log4j2.Log4j2EcsLayoutIntegrationTest 17βœ”οΈ 116ms

βœ”οΈΒ co.elastic.logging.log4j2.Log4j2EcsLayoutIntegrationTest

βœ”οΈ testLogOrigin
βœ”οΈ testSimpleLog
βœ”οΈ testMdc
βœ”οΈ testThreadContext
βœ”οΈ testAdditionalFields
βœ”οΈ testMetadata
βœ”οΈ testLogExceptionNullMessage
βœ”οΈ testLogException
βœ”οΈ testThreadContextStack
βœ”οΈ testSimpleParameterizedLog
βœ”οΈ testJsonMessageBoolean
βœ”οΈ testJsonMessageArray
βœ”οΈ testJsonMessageNumber
βœ”οΈ testJsonMessageString
βœ”οΈ testCustomPatternConverter
βœ”οΈ testAdditionalFieldsWithLookup
βœ”οΈ testMarker

❌ log4j2-legacy-tests/target/surefire-reports/TEST-co.elastic.logging.log4j2.LegacyLog4j2EcsLayoutTest.xml

17 tests were completed in 445ms with 0 passed, 17 failed and 0 skipped.

Test suite Passed Failed Skipped Time
co.elastic.logging.log4j2.LegacyLog4j2EcsLayoutTest 17❌ 445ms

❌ co.elastic.logging.log4j2.LegacyLog4j2EcsLayoutTest

❌ testLogOrigin
	java.util.ServiceConfigurationError: co.elastic.logging.log4j2.MdcSerializerFactory: Provider co.elastic.logging.log4j2.TestMdcSerializerFactory could not be instantiated
❌ testSimpleLog
	java.lang.NoClassDefFoundError: Could not initialize class co.elastic.logging.log4j2.EcsLayout
❌ testMdc
	java.lang.NoClassDefFoundError: Could not initialize class co.elastic.logging.log4j2.EcsLayout
❌ testThreadContext
	java.lang.NoClassDefFoundError: Could not initialize class co.elastic.logging.log4j2.EcsLayout
❌ testAdditionalFields
	java.lang.NoClassDefFoundError: Could not initialize class co.elastic.logging.log4j2.EcsLayout
❌ testMetadata
	java.lang.NoClassDefFoundError: Could not initialize class co.elastic.logging.log4j2.EcsLayout
❌ testLogExceptionNullMessage
	java.lang.NoClassDefFoundError: Could not initialize class co.elastic.logging.log4j2.EcsLayout
❌ testLogException
	java.lang.NoClassDefFoundError: Could not initialize class co.elastic.logging.log4j2.EcsLayout
❌ testThreadContextStack
	java.lang.NoClassDefFoundError: Could not initialize class co.elastic.logging.log4j2.EcsLayout
❌ testSimpleParameterizedLog
	java.lang.NoClassDefFoundError: Could not initialize class co.elastic.logging.log4j2.EcsLayout
❌ testJsonMessageBoolean
	java.lang.NoClassDefFoundError: Could not initialize class co.elastic.logging.log4j2.EcsLayout
❌ testJsonMessageArray
	java.lang.NoClassDefFoundError: Could not initialize class co.elastic.logging.log4j2.EcsLayout
❌ testJsonMessageNumber
	java.lang.NoClassDefFoundError: Could not initialize class co.elastic.logging.log4j2.EcsLayout
❌ testJsonMessageString
	java.lang.NoClassDefFoundError: Could not initialize class co.elastic.logging.log4j2.EcsLayout
❌ testCustomPatternConverter
	java.lang.NoClassDefFoundError: Could not initialize class co.elastic.logging.log4j2.EcsLayout
❌ testAdditionalFieldsWithLookup
	java.lang.NoClassDefFoundError: Could not initialize class co.elastic.logging.log4j2.EcsLayout
❌ testMarker
	java.lang.NoClassDefFoundError: Could not initialize class co.elastic.logging.log4j2.EcsLayout

βœ”οΈΒ logback-ecs-encoder/target/surefire-reports/TEST-co.elastic.logging.logback.EcsEncoderIntegrationTest.xml

11 tests were completed in 70ms with 11 passed, 0 failed and 0 skipped.

Test suite Passed Failed Skipped Time
co.elastic.logging.logback.EcsEncoderIntegrationTest 11βœ”οΈ 70ms

βœ”οΈΒ co.elastic.logging.logback.EcsEncoderIntegrationTest

βœ”οΈ testLogOrigin
βœ”οΈ testSimpleLog
βœ”οΈ testMdc
βœ”οΈ testThreadContext
βœ”οΈ testAdditionalFields
βœ”οΈ testMetadata
βœ”οΈ testLogExceptionNullMessage
βœ”οΈ testLogException
βœ”οΈ testThreadContextStack
βœ”οΈ testSimpleParameterizedLog
βœ”οΈ testMarker

βœ”οΈΒ logback-ecs-encoder/target/surefire-reports/TEST-co.elastic.logging.logback.EcsEncoderTest.xml

11 tests were completed in 320ms with 11 passed, 0 failed and 0 skipped.

Test suite Passed Failed Skipped Time
co.elastic.logging.logback.EcsEncoderTest 11βœ”οΈ 320ms

βœ”οΈΒ co.elastic.logging.logback.EcsEncoderTest

βœ”οΈ testLogOrigin
βœ”οΈ testSimpleLog
βœ”οΈ testMdc
βœ”οΈ testThreadContext
βœ”οΈ testAdditionalFields
βœ”οΈ testMetadata
βœ”οΈ testLogExceptionNullMessage
βœ”οΈ testLogException
βœ”οΈ testThreadContextStack
βœ”οΈ testSimpleParameterizedLog
βœ”οΈ testMarker

βœ”οΈΒ logback-ecs-encoder/target/surefire-reports/TEST-co.elastic.logging.logback.EcsEncoderWithCustomThrowableConverterIntegrationTest.xml

11 tests were completed in 167ms with 11 passed, 0 failed and 0 skipped.

Test suite Passed Failed Skipped Time
co.elastic.logging.logback.EcsEncoderWithCustomThrowableConverterIntegrationTest 11βœ”οΈ 167ms

βœ”οΈΒ co.elastic.logging.logback.EcsEncoderWithCustomThrowableConverterIntegrationTest

βœ”οΈ testLogOrigin
βœ”οΈ testSimpleLog
βœ”οΈ testMdc
βœ”οΈ testThreadContext
βœ”οΈ testAdditionalFields
βœ”οΈ testMetadata
βœ”οΈ testLogExceptionNullMessage
βœ”οΈ testThreadContextStack
βœ”οΈ testSimpleParameterizedLog
βœ”οΈ testMarker
βœ”οΈ testLogException

βœ”οΈΒ logback-ecs-encoder/target/surefire-reports/TEST-co.elastic.logging.logback.EcsEncoderWithStacktraceAsArrayTest.xml

11 tests were completed in 31ms with 11 passed, 0 failed and 0 skipped.

Test suite Passed Failed Skipped Time
co.elastic.logging.logback.EcsEncoderWithStacktraceAsArrayTest 11βœ”οΈ 31ms

βœ”οΈΒ co.elastic.logging.logback.EcsEncoderWithStacktraceAsArrayTest

βœ”οΈ testLogOrigin
βœ”οΈ testSimpleLog
βœ”οΈ testMdc
βœ”οΈ testThreadContext
βœ”οΈ testAdditionalFields
βœ”οΈ testMetadata
βœ”οΈ testThreadContextStack
βœ”οΈ testSimpleParameterizedLog
βœ”οΈ testMarker
βœ”οΈ testLogExceptionNullMessage
βœ”οΈ testLogException

Annotations

Check failure on line 0 in log4j2-legacy-tests/target/surefire-reports/TEST-co.elastic.logging.log4j2.LegacyLog4j2EcsLayoutTest.xml

See this annotation in the file changed.

@github-actions github-actions / Test Report

co.elastic.logging.log4j2.LegacyLog4j2EcsLayoutTest β–Ί testLogOrigin

Failed test found in:
  log4j2-legacy-tests/target/surefire-reports/TEST-co.elastic.logging.log4j2.LegacyLog4j2EcsLayoutTest.xml
Error:
  java.util.ServiceConfigurationError: co.elastic.logging.log4j2.MdcSerializerFactory: Provider co.elastic.logging.log4j2.TestMdcSerializerFactory could not be instantiated
Raw output
java.util.ServiceConfigurationError: co.elastic.logging.log4j2.MdcSerializerFactory: Provider co.elastic.logging.log4j2.TestMdcSerializerFactory could not be instantiated
	at java.base/java.util.ServiceLoader.fail(ServiceLoader.java:586)
	at java.base/java.util.ServiceLoader$ProviderImpl.newInstance(ServiceLoader.java:813)
	at java.base/java.util.ServiceLoader$ProviderImpl.get(ServiceLoader.java:729)
	at java.base/java.util.ServiceLoader$3.next(ServiceLoader.java:1403)
	at co.elastic.logging.log4j2.MdcSerializer$Resolver.resolveUserDefinedMdcSerializer(MdcSerializer.java:54)
	at co.elastic.logging.log4j2.MdcSerializer$Resolver.resolve(MdcSerializer.java:41)
	at co.elastic.logging.log4j2.EcsLayout.<clinit>(EcsLayout.java:65)
	at co.elastic.logging.log4j2.Log4j2EcsLayoutTest.configureLayout(Log4j2EcsLayoutTest.java:77)
	at co.elastic.logging.log4j2.Log4j2EcsLayoutTest.setUp(Log4j2EcsLayoutTest.java:67)
	at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
	at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:77)
	at java.base/jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
	at java.base/java.lang.reflect.Method.invoke(Method.java:569)
	at org.junit.platform.commons.util.ReflectionUtils.invokeMethod(ReflectionUtils.java:675)
	at org.junit.jupiter.engine.execution.MethodInvocation.proceed(MethodInvocation.java:60)
	at org.junit.jupiter.engine.execution.InvocationInterceptorChain$ValidatingInvocation.proceed(InvocationInterceptorChain.java:125)
	at org.junit.jupiter.engine.extension.TimeoutExtension.intercept(TimeoutExtension.java:132)
	at org.junit.jupiter.engine.extension.TimeoutExtension.interceptLifecycleMethod(TimeoutExtension.java:111)
	at org.junit.jupiter.engine.extension.TimeoutExtension.interceptBeforeEachMethod(TimeoutExtension.java:67)
	at org.junit.jupiter.engine.execution.ExecutableInvoker$ReflectiveInterceptorCall.lambda$ofVoidMethod$0(ExecutableInvoker.java:115)
	at org.junit.jupiter.engine.execution.ExecutableInvoker.lambda$invoke$0(ExecutableInvoker.java:105)
	at org.junit.jupiter.engine.execution.InvocationInterceptorChain$InterceptedInvocation.proceed(InvocationInterceptorChain.java:104)
	at org.junit.jupiter.engine.execution.InvocationInterceptorChain.proceed(InvocationInterceptorChain.java:62)
	at org.junit.jupiter.engine.execution.InvocationInterceptorChain.chainAndInvoke(InvocationInterceptorChain.java:43)
	at org.junit.jupiter.engine.execution.InvocationInterceptorChain.invoke(InvocationInterceptorChain.java:35)
	at org.junit.jupiter.engine.execution.ExecutableInvoker.invoke(ExecutableInvoker.java:104)
	at org.junit.jupiter.engine.execution.ExecutableInvoker.invoke(ExecutableInvoker.java:98)
	at org.junit.jupiter.engine.descriptor.ClassBasedTestDescriptor.invokeMethodInExtensionContext(ClassBasedTestDescriptor.java:464)
	at org.junit.jupiter.engine.descriptor.ClassBasedTestDescriptor.lambda$synthesizeBeforeEachMethodAdapter$16(ClassBasedTestDescriptor.java:449)
	at org.junit.jupiter.engine.descriptor.TestMethodTestDescriptor.lambda$invokeBeforeEachMethods$2(TestMethodTestDescriptor.java:159)
	at org.junit.jupiter.engine.descriptor.TestMethodTestDescriptor.lambda$invokeBeforeMethodsOrCallbacksUntilExceptionOccurs$5(TestMethodTestDescriptor.java:187)
	at org.junit.platform.engine.support.hierarchical.ThrowableCollector.execute(ThrowableCollector.java:73)
	at org.junit.jupiter.engine.descriptor.TestMethodTestDescriptor.invokeBeforeMethodsOrCallbacksUntilExceptionOccurs(TestMethodTestDescriptor.java:187)
	at org.junit.jupiter.engine.descriptor.TestMethodTestDescriptor.invokeBeforeEachMethods(TestMethodTestDescriptor.java:156)
	at org.junit.jupiter.engine.descriptor.TestMethodTestDescriptor.execute(TestMethodTestDescriptor.java:131)
	at org.junit.jupiter.engine.descriptor.TestMethodTestDescriptor.execute(TestMethodTestDescriptor.java:69)
	at org.junit.platform.engine.support.hierarchical.NodeTestTask.lambda$executeRecursively$5(NodeTestTask.java:135)
	at org.junit.platform.engine.support.hierarchical.ThrowableCollector.execute(ThrowableCollector.java:73)
	at org.junit.platform.engine.support.hierarchical.NodeTestTask.lambda$executeRecursively$7(NodeTestTask.java:125)
	at org.junit.platform.engine.support.hierarchical.Node.around(Node.java:135)
	at org.junit.platform.engine.support.hierarchical.NodeTestTask.lambda$executeRecursively$8(NodeTestTask.java:123)
	at org.junit.platform.engine.support.hierarchical.ThrowableCollector.execute(ThrowableCollector.java:73)
	at org.junit.platform.engine.support.hierarchical.NodeTestTask.executeRecursively(NodeTestTask.java:122)
	at org.junit.platform.engine.support.hierarchical.NodeTestTask.execute(NodeTestTask.java:80)
	at java.base/java.util.ArrayList.forEach(ArrayList.java:1511)
	at org.junit.platform.engine.support.hierarchical.SameThreadHierarchicalTestExecutorService.invokeAll(SameThreadHierarchicalTestExecutorService.java:38)
	at org.junit.platform.engine.support.hierarchical.NodeTestTask.lambda$executeRecursively$5(NodeTestTask.java:139)
	at org.junit.platform.engine.support.hierarchical.ThrowableCollector.execute(ThrowableCollector.java:73)
	at org.junit.platform.engine.support.hierarchical.NodeTestTask.lambda$executeRecursively$7(NodeTestTask.java:125)
	at org.junit.platform.engine.support.hierarchical.Node.around(Node.java:135)
	at org.junit.platform.engine.support.hierarchical.NodeTestTask.lambda$executeRecursively$8(NodeTestTask.java:123)
	at org.junit.platform.engine.support.hierarchical.ThrowableCollector.execute(ThrowableCollector.java:73)
	at org.junit.platform.engine.support.hierarchical.NodeTestTask.executeRecursively(NodeTestTask.java:122)
	at org.junit.platform.engine.support.hierarchical.NodeTestTask.execute(NodeTestTask.java:80)
	at java.base/java.util.ArrayList.forEach(ArrayList.java:1511)
	at org.junit.platform.engine.support.hierarchical.SameThreadHierarchicalTestExecutorService.invokeAll(SameThreadHierarchicalTestExecutorService.java:38)
	at org.junit.platform.engine.support.hierarchical.NodeTestTask.lambda$executeRecursively$5(NodeTestTask.java:139)
	at org.junit.platform.engine.support.hierarchical.ThrowableCollector.execute(ThrowableCollector.java:73)
	at org.junit.platform.engine.support.hierarchical.NodeTestTask.lambda$executeRecursively$7(NodeTestTask.java:125)
	at org.junit.platform.engine.support.hierarchical.Node.around(Node.java:135)
	at org.junit.platform.engine.support.hierarchical.NodeTestTask.lambda$executeRecursively$8(NodeTestTask.java:123)
	at org.junit.platform.engine.support.hierarchical.ThrowableCollector.execute(ThrowableCollector.java:73)
	at org.junit.platform.engine.support.hierarchical.NodeTestTask.executeRecursively(NodeTestTask.java:122)
	at org.junit.platform.engine.support.hierarchical.NodeTestTask.execute(NodeTestTask.java:80)
	at org.junit.platform.engine.support.hierarchical.SameThreadHierarchicalTestExecutorService.submit(SameThreadHierarchicalTestExecutorService.java:32)
	at org.junit.platform.engine.support.hierarchical.HierarchicalTestExecutor.execute(HierarchicalTestExecutor.java:57)
	at org.junit.platform.engine.support.hierarchical.HierarchicalTestEngine.execute(HierarchicalTestEngine.java:51)
	at org.junit.platform.launcher.core.DefaultLauncher.execute(DefaultLauncher.java:170)
	at org.junit.platform.launcher.core.DefaultLauncher.execute(DefaultLauncher.java:154)
	at org.junit.platform.launcher.core.DefaultLauncher.execute(DefaultLauncher.java:90)
	at org.junit.platform.surefire.provider.JUnitPlatformProvider.invokeAllTests(JUnitPlatformProvider.java:132)
	at org.junit.platform.surefire.provider.JUnitPlatformProvider.invoke(JUnitPlatformProvider.java:111)
	at org.apache.maven.surefire.booter.ForkedBooter.invokeProviderInSameClassLoader(ForkedBooter.java:290)
	at org.apache.maven.surefire.booter.ForkedBooter.runSuitesInProcess(ForkedBooter.java:242)
	at org.apache.maven.surefire.booter.ForkedBooter.main(ForkedBooter.java:121)
Caused by: java.lang.NoClassDefFoundError: org/apache/logging/log4j/util/TriConsumer
	at co.elastic.logging.log4j2.TestMdcSerializerFactory.<clinit>(TestMdcSerializerFactory.java:43)
	at java.base/jdk.internal.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)
	at java.base/jdk.internal.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:77)
	at java.base/jdk.internal.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:45)
	at java.base/java.lang.reflect.Constructor.newInstanceWithCaller(Constructor.java:500)
	at java.base/java.lang.reflect.Constructor.newInstance(Constructor.java:481)
	at java.base/java.util.ServiceLoader$ProviderImpl.newInstance(ServiceLoader.java:789)
	... 73 more
Caused by: java.lang.ClassNotFoundException: org.apache.logging.log4j.util.TriConsumer
	at java.base/jdk.internal.loader.BuiltinClassLoader.loadClass(BuiltinClassLoader.java:641)
	at java.base/jdk.internal.loader.ClassLoaders$AppClassLoader.loadClass(ClassLoaders.java:188)
	at java.base/java.lang.ClassLoader.loadClass(ClassLoader.java:525)
	... 80 more

Check failure on line 0 in log4j2-legacy-tests/target/surefire-reports/TEST-co.elastic.logging.log4j2.LegacyLog4j2EcsLayoutTest.xml

See this annotation in the file changed.

@github-actions github-actions / Test Report

co.elastic.logging.log4j2.LegacyLog4j2EcsLayoutTest β–Ί testSimpleLog

Failed test found in:
  log4j2-legacy-tests/target/surefire-reports/TEST-co.elastic.logging.log4j2.LegacyLog4j2EcsLayoutTest.xml
  log4j2-legacy-tests/target/surefire-reports/TEST-co.elastic.logging.log4j2.LegacyLog4j2EcsLayoutTest.xml
  log4j2-legacy-tests/target/surefire-reports/TEST-co.elastic.logging.log4j2.LegacyLog4j2EcsLayoutTest.xml
  log4j2-legacy-tests/target/surefire-reports/TEST-co.elastic.logging.log4j2.LegacyLog4j2EcsLayoutTest.xml
  log4j2-legacy-tests/target/surefire-reports/TEST-co.elastic.logging.log4j2.LegacyLog4j2EcsLayoutTest.xml
  log4j2-legacy-tests/target/surefire-reports/TEST-co.elastic.logging.log4j2.LegacyLog4j2EcsLayoutTest.xml
  log4j2-legacy-tests/target/surefire-reports/TEST-co.elastic.logging.log4j2.LegacyLog4j2EcsLayoutTest.xml
  log4j2-legacy-tests/target/surefire-reports/TEST-co.elastic.logging.log4j2.LegacyLog4j2EcsLayoutTest.xml
  log4j2-legacy-tests/target/surefire-reports/TEST-co.elastic.logging.log4j2.LegacyLog4j2EcsLayoutTest.xml
  log4j2-legacy-tests/target/surefire-reports/TEST-co.elastic.logging.log4j2.LegacyLog4j2EcsLayoutTest.xml
  log4j2-legacy-tests/target/surefire-reports/TEST-co.elastic.logging.log4j2.LegacyLog4j2EcsLayoutTest.xml
  log4j2-legacy-tests/target/surefire-reports/TEST-co.elastic.logging.log4j2.LegacyLog4j2EcsLayoutTest.xml
  log4j2-legacy-tests/target/surefire-reports/TEST-co.elastic.logging.log4j2.LegacyLog4j2EcsLayoutTest.xml
  log4j2-legacy-tests/target/surefire-reports/TEST-co.elastic.logging.log4j2.LegacyLog4j2EcsLayoutTest.xml
  log4j2-legacy-tests/target/surefire-reports/TEST-co.elastic.logging.log4j2.LegacyLog4j2EcsLayoutTest.xml
Error:
  java.lang.NoClassDefFoundError: Could not initialize class co.elastic.logging.log4j2.EcsLayout
Raw output
java.lang.NoClassDefFoundError: Could not initialize class co.elastic.logging.log4j2.EcsLayout
	at co.elastic.logging.log4j2.Log4j2EcsLayoutTest.configureLayout(Log4j2EcsLayoutTest.java:77)
	at co.elastic.logging.log4j2.Log4j2EcsLayoutTest.setUp(Log4j2EcsLayoutTest.java:67)
	at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
	at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:77)
	at java.base/jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
	at java.base/java.lang.reflect.Method.invoke(Method.java:569)
	at org.junit.platform.commons.util.ReflectionUtils.invokeMethod(ReflectionUtils.java:675)
	at org.junit.jupiter.engine.execution.MethodInvocation.proceed(MethodInvocation.java:60)
	at org.junit.jupiter.engine.execution.InvocationInterceptorChain$ValidatingInvocation.proceed(InvocationInterceptorChain.java:125)
	at org.junit.jupiter.engine.extension.TimeoutExtension.intercept(TimeoutExtension.java:132)
	at org.junit.jupiter.engine.extension.TimeoutExtension.interceptLifecycleMethod(TimeoutExtension.java:111)
	at org.junit.jupiter.engine.extension.TimeoutExtension.interceptBeforeEachMethod(TimeoutExtension.java:67)
	at org.junit.jupiter.engine.execution.ExecutableInvoker$ReflectiveInterceptorCall.lambda$ofVoidMethod$0(ExecutableInvoker.java:115)
	at org.junit.jupiter.engine.execution.ExecutableInvoker.lambda$invoke$0(ExecutableInvoker.java:105)
	at org.junit.jupiter.engine.execution.InvocationInterceptorChain$InterceptedInvocation.proceed(InvocationInterceptorChain.java:104)
	at org.junit.jupiter.engine.execution.InvocationInterceptorChain.proceed(InvocationInterceptorChain.java:62)
	at org.junit.jupiter.engine.execution.InvocationInterceptorChain.chainAndInvoke(InvocationInterceptorChain.java:43)
	at org.junit.jupiter.engine.execution.InvocationInterceptorChain.invoke(InvocationInterceptorChain.java:35)
	at org.junit.jupiter.engine.execution.ExecutableInvoker.invoke(ExecutableInvoker.java:104)
	at org.junit.jupiter.engine.execution.ExecutableInvoker.invoke(ExecutableInvoker.java:98)
	at org.junit.jupiter.engine.descriptor.ClassBasedTestDescriptor.invokeMethodInExtensionContext(ClassBasedTestDescriptor.java:464)
	at org.junit.jupiter.engine.descriptor.ClassBasedTestDescriptor.lambda$synthesizeBeforeEachMethodAdapter$16(ClassBasedTestDescriptor.java:449)
	at org.junit.jupiter.engine.descriptor.TestMethodTestDescriptor.lambda$invokeBeforeEachMethods$2(TestMethodTestDescriptor.java:159)
	at org.junit.jupiter.engine.descriptor.TestMethodTestDescriptor.lambda$invokeBeforeMethodsOrCallbacksUntilExceptionOccurs$5(TestMethodTestDescriptor.java:187)
	at org.junit.platform.engine.support.hierarchical.ThrowableCollector.execute(ThrowableCollector.java:73)
	at org.junit.jupiter.engine.descriptor.TestMethodTestDescriptor.invokeBeforeMethodsOrCallbacksUntilExceptionOccurs(TestMethodTestDescriptor.java:187)
	at org.junit.jupiter.engine.descriptor.TestMethodTestDescriptor.invokeBeforeEachMethods(TestMethodTestDescriptor.java:156)
	at org.junit.jupiter.engine.descriptor.TestMethodTestDescriptor.execute(TestMethodTestDescriptor.java:131)
	at org.junit.jupiter.engine.descriptor.TestMethodTestDescriptor.execute(TestMethodTestDescriptor.java:69)
	at org.junit.platform.engine.support.hierarchical.NodeTestTask.lambda$executeRecursively$5(NodeTestTask.java:135)
	at org.junit.platform.engine.support.hierarchical.ThrowableCollector.execute(ThrowableCollector.java:73)
	at org.junit.platform.engine.support.hierarchical.NodeTestTask.lambda$executeRecursively$7(NodeTestTask.java:125)
	at org.junit.platform.engine.support.hierarchical.Node.around(Node.java:135)
	at org.junit.platform.engine.support.hierarchical.NodeTestTask.lambda$executeRecursively$8(NodeTestTask.java:123)
	at org.junit.platform.engine.support.hierarchical.ThrowableCollector.execute(ThrowableCollector.java:73)
	at org.junit.platform.engine.support.hierarchical.NodeTestTask.executeRecursively(NodeTestTask.java:122)
	at org.junit.platform.engine.support.hierarchical.NodeTestTask.execute(NodeTestTask.java:80)
	at java.base/java.util.ArrayList.forEach(ArrayList.java:1511)
	at org.junit.platform.engine.support.hierarchical.SameThreadHierarchicalTestExecutorService.invokeAll(SameThreadHierarchicalTestExecutorService.java:38)
	at org.junit.platform.engine.support.hierarchical.NodeTestTask.lambda$executeRecursively$5(NodeTestTask.java:139)
	at org.junit.platform.engine.support.hierarchical.ThrowableCollector.execute(ThrowableCollector.java:73)
	at org.junit.platform.engine.support.hierarchical.NodeTestTask.lambda$executeRecursively$7(NodeTestTask.java:125)
	at org.junit.platform.engine.support.hierarchical.Node.around(Node.java:135)
	at org.junit.platform.engine.support.hierarchical.NodeTestTask.lambda$executeRecursively$8(NodeTestTask.java:123)
	at org.junit.platform.engine.support.hierarchical.ThrowableCollector.execute(ThrowableCollector.java:73)
	at org.junit.platform.engine.support.hierarchical.NodeTestTask.executeRecursively(NodeTestTask.java:122)
	at org.junit.platform.engine.support.hierarchical.NodeTestTask.execute(NodeTestTask.java:80)
	at java.base/java.util.ArrayList.forEach(ArrayList.java:1511)
	at org.junit.platform.engine.support.hierarchical.SameThreadHierarchicalTestExecutorService.invokeAll(SameThreadHierarchicalTestExecutorService.java:38)
	at org.junit.platform.engine.support.hierarchical.NodeTestTask.lambda$executeRecursively$5(NodeTestTask.java:139)
	at org.junit.platform.engine.support.hierarchical.ThrowableCollector.execute(ThrowableCollector.java:73)
	at org.junit.platform.engine.support.hierarchical.NodeTestTask.lambda$executeRecursively$7(NodeTestTask.java:125)
	at org.junit.platform.engine.support.hierarchical.Node.around(Node.java:135)
	at org.junit.platform.engine.support.hierarchical.NodeTestTask.lambda$executeRecursively$8(NodeTestTask.java:123)
	at org.junit.platform.engine.support.hierarchical.ThrowableCollector.execute(ThrowableCollector.java:73)
	at org.junit.platform.engine.support.hierarchical.NodeTestTask.executeRecursively(NodeTestTask.java:122)
	at org.junit.platform.engine.support.hierarchical.NodeTestTask.execute(NodeTestTask.java:80)
	at org.junit.platform.engine.support.hierarchical.SameThreadHierarchicalTestExecutorService.submit(SameThreadHierarchicalTestExecutorService.java:32)
	at org.junit.platform.engine.support.hierarchical.HierarchicalTestExecutor.execute(HierarchicalTestExecutor.java:57)
	at org.junit.platform.engine.support.hierarchical.HierarchicalTestEngine.execute(HierarchicalTestEngine.java:51)
	at org.junit.platform.launcher.core.DefaultLauncher.execute(DefaultLauncher.java:170)
	at org.junit.platform.launcher.core.DefaultLauncher.execute(DefaultLauncher.java:154)
	at org.junit.platform.launcher.core.DefaultLauncher.execute(DefaultLauncher.java:90)
	at org.junit.platform.surefire.provider.JUnitPlatformProvider.invokeAllTests(JUnitPlatformProvider.java:132)
	at org.junit.platform.surefire.provider.JUnitPlatformProvider.invoke(JUnitPlatformProvider.java:111)
	at org.apache.maven.surefire.booter.ForkedBooter.invokeProviderInSameClassLoader(ForkedBooter.java:290)
	at org.apache.maven.surefire.booter.ForkedBooter.runSuitesInProcess(ForkedBooter.java:242)
	at org.apache.maven.surefire.booter.ForkedBooter.main(ForkedBooter.java:121)
Caused by: java.lang.ExceptionInInitializerError: Exception java.util.ServiceConfigurationError: co.elastic.logging.log4j2.MdcSerializerFactory: Provider co.elastic.logging.log4j2.TestMdcSerializerFactory could not be instantiated [in thread "main"]
	at java.base/java.util.ServiceLoader.fail(ServiceLoader.java:586)
	at java.base/java.util.ServiceLoader$ProviderImpl.newInstance(ServiceLoader.java:813)
	at java.base/java.util.ServiceLoader$ProviderImpl.get(ServiceLoader.java:729)
	at java.base/java.util.ServiceLoader$3.next(ServiceLoader.java:1403)
	at co.elastic.logging.log4j2.MdcSerializer$Resolver.resolveUserDefinedMdcSerializer(MdcSerializer.java:54)
	at co.elastic.logging.log4j2.MdcSerializer$Resolver.resolve(MdcSerializer.java:41)
	at co.elastic.logging.log4j2.EcsLayout.<clinit>(EcsLayout.java:65)
	... 68 more

Check failure on line 0 in log4j2-legacy-tests/target/surefire-reports/TEST-co.elastic.logging.log4j2.LegacyLog4j2EcsLayoutTest.xml

See this annotation in the file changed.

@github-actions github-actions / Test Report

co.elastic.logging.log4j2.LegacyLog4j2EcsLayoutTest β–Ί testMarker

Failed test found in:
  log4j2-legacy-tests/target/surefire-reports/TEST-co.elastic.logging.log4j2.LegacyLog4j2EcsLayoutTest.xml
Error:
  java.lang.NoClassDefFoundError: Could not initialize class co.elastic.logging.log4j2.EcsLayout
Raw output
java.lang.NoClassDefFoundError: Could not initialize class co.elastic.logging.log4j2.EcsLayout
	at co.elastic.logging.log4j2.Log4j2EcsLayoutTest.configureLayout(Log4j2EcsLayoutTest.java:77)
	at co.elastic.logging.log4j2.Log4j2EcsLayoutTest.setUp(Log4j2EcsLayoutTest.java:67)
	at jdk.internal.reflect.GeneratedMethodAccessor8.invoke(Unknown Source)
	at java.base/jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
	at java.base/java.lang.reflect.Method.invoke(Method.java:569)
	at org.junit.platform.commons.util.ReflectionUtils.invokeMethod(ReflectionUtils.java:675)
	at org.junit.jupiter.engine.execution.MethodInvocation.proceed(MethodInvocation.java:60)
	at org.junit.jupiter.engine.execution.InvocationInterceptorChain$ValidatingInvocation.proceed(InvocationInterceptorChain.java:125)
	at org.junit.jupiter.engine.extension.TimeoutExtension.intercept(TimeoutExtension.java:132)
	at org.junit.jupiter.engine.extension.TimeoutExtension.interceptLifecycleMethod(TimeoutExtension.java:111)
	at org.junit.jupiter.engine.extension.TimeoutExtension.interceptBeforeEachMethod(TimeoutExtension.java:67)
	at org.junit.jupiter.engine.execution.ExecutableInvoker$ReflectiveInterceptorCall.lambda$ofVoidMethod$0(ExecutableInvoker.java:115)
	at org.junit.jupiter.engine.execution.ExecutableInvoker.lambda$invoke$0(ExecutableInvoker.java:105)
	at org.junit.jupiter.engine.execution.InvocationInterceptorChain$InterceptedInvocation.proceed(InvocationInterceptorChain.java:104)
	at org.junit.jupiter.engine.execution.InvocationInterceptorChain.proceed(InvocationInterceptorChain.java:62)
	at org.junit.jupiter.engine.execution.InvocationInterceptorChain.chainAndInvoke(InvocationInterceptorChain.java:43)
	at org.junit.jupiter.engine.execution.InvocationInterceptorChain.invoke(InvocationInterceptorChain.java:35)
	at org.junit.jupiter.engine.execution.ExecutableInvoker.invoke(ExecutableInvoker.java:104)
	at org.junit.jupiter.engine.execution.ExecutableInvoker.invoke(ExecutableInvoker.java:98)
	at org.junit.jupiter.engine.descriptor.ClassBasedTestDescriptor.invokeMethodInExtensionContext(ClassBasedTestDescriptor.java:464)
	at org.junit.jupiter.engine.descriptor.ClassBasedTestDescriptor.lambda$synthesizeBeforeEachMethodAdapter$16(ClassBasedTestDescriptor.java:449)
	at org.junit.jupiter.engine.descriptor.TestMethodTestDescriptor.lambda$invokeBeforeEachMethods$2(TestMethodTestDescriptor.java:159)
	at org.junit.jupiter.engine.descriptor.TestMethodTestDescriptor.lambda$invokeBeforeMethodsOrCallbacksUntilExceptionOccurs$5(TestMethodTestDescriptor.java:187)
	at org.junit.platform.engine.support.hierarchical.ThrowableCollector.execute(ThrowableCollector.java:73)
	at org.junit.jupiter.engine.descriptor.TestMethodTestDescriptor.invokeBeforeMethodsOrCallbacksUntilExceptionOccurs(TestMethodTestDescriptor.java:187)
	at org.junit.jupiter.engine.descriptor.TestMethodTestDescriptor.invokeBeforeEachMethods(TestMethodTestDescriptor.java:156)
	at org.junit.jupiter.engine.descriptor.TestMethodTestDescriptor.execute(TestMethodTestDescriptor.java:131)
	at org.junit.jupiter.engine.descriptor.TestMethodTestDescriptor.execute(TestMethodTestDescriptor.java:69)
	at org.junit.platform.engine.support.hierarchical.NodeTestTask.lambda$executeRecursively$5(NodeTestTask.java:135)
	at org.junit.platform.engine.support.hierarchical.ThrowableCollector.execute(ThrowableCollector.java:73)
	at org.junit.platform.engine.support.hierarchical.NodeTestTask.lambda$executeRecursively$7(NodeTestTask.java:125)
	at org.junit.platform.engine.support.hierarchical.Node.around(Node.java:135)
	at org.junit.platform.engine.support.hierarchical.NodeTestTask.lambda$executeRecursively$8(NodeTestTask.java:123)
	at org.junit.platform.engine.support.hierarchical.ThrowableCollector.execute(ThrowableCollector.java:73)
	at org.junit.platform.engine.support.hierarchical.NodeTestTask.executeRecursively(NodeTestTask.java:122)
	at org.junit.platform.engine.support.hierarchical.NodeTestTask.execute(NodeTestTask.java:80)
	at java.base/java.util.ArrayList.forEach(ArrayList.java:1511)
	at org.junit.platform.engine.support.hierarchical.SameThreadHierarchicalTestExecutorService.invokeAll(SameThreadHierarchicalTestExecutorService.java:38)
	at org.junit.platform.engine.support.hierarchical.NodeTestTask.lambda$executeRecursively$5(NodeTestTask.java:139)
	at org.junit.platform.engine.support.hierarchical.ThrowableCollector.execute(ThrowableCollector.java:73)
	at org.junit.platform.engine.support.hierarchical.NodeTestTask.lambda$executeRecursively$7(NodeTestTask.java:125)
	at org.junit.platform.engine.support.hierarchical.Node.around(Node.java:135)
	at org.junit.platform.engine.support.hierarchical.NodeTestTask.lambda$executeRecursively$8(NodeTestTask.java:123)
	at org.junit.platform.engine.support.hierarchical.ThrowableCollector.execute(ThrowableCollector.java:73)
	at org.junit.platform.engine.support.hierarchical.NodeTestTask.executeRecursively(NodeTestTask.java:122)
	at org.junit.platform.engine.support.hierarchical.NodeTestTask.execute(NodeTestTask.java:80)
	at java.base/java.util.ArrayList.forEach(ArrayList.java:1511)
	at org.junit.platform.engine.support.hierarchical.SameThreadHierarchicalTestExecutorService.invokeAll(SameThreadHierarchicalTestExecutorService.java:38)
	at org.junit.platform.engine.support.hierarchical.NodeTestTask.lambda$executeRecursively$5(NodeTestTask.java:139)
	at org.junit.platform.engine.support.hierarchical.ThrowableCollector.execute(ThrowableCollector.java:73)
	at org.junit.platform.engine.support.hierarchical.NodeTestTask.lambda$executeRecursively$7(NodeTestTask.java:125)
	at org.junit.platform.engine.support.hierarchical.Node.around(Node.java:135)
	at org.junit.platform.engine.support.hierarchical.NodeTestTask.lambda$executeRecursively$8(NodeTestTask.java:123)
	at org.junit.platform.engine.support.hierarchical.ThrowableCollector.execute(ThrowableCollector.java:73)
	at org.junit.platform.engine.support.hierarchical.NodeTestTask.executeRecursively(NodeTestTask.java:122)
	at org.junit.platform.engine.support.hierarchical.NodeTestTask.execute(NodeTestTask.java:80)
	at org.junit.platform.engine.support.hierarchical.SameThreadHierarchicalTestExecutorService.submit(SameThreadHierarchicalTestExecutorService.java:32)
	at org.junit.platform.engine.support.hierarchical.HierarchicalTestExecutor.execute(HierarchicalTestExecutor.java:57)
	at org.junit.platform.engine.support.hierarchical.HierarchicalTestEngine.execute(HierarchicalTestEngine.java:51)
	at org.junit.platform.launcher.core.DefaultLauncher.execute(DefaultLauncher.java:170)
	at org.junit.platform.launcher.core.DefaultLauncher.execute(DefaultLauncher.java:154)
	at org.junit.platform.launcher.core.DefaultLauncher.execute(DefaultLauncher.java:90)
	at org.junit.platform.surefire.provider.JUnitPlatformProvider.invokeAllTests(JUnitPlatformProvider.java:132)
	at org.junit.platform.surefire.provider.JUnitPlatformProvider.invoke(JUnitPlatformProvider.java:111)
	at org.apache.maven.surefire.booter.ForkedBooter.invokeProviderInSameClassLoader(ForkedBooter.java:290)
	at org.apache.maven.surefire.booter.ForkedBooter.runSuitesInProcess(ForkedBooter.java:242)
	at org.apache.maven.surefire.booter.ForkedBooter.main(ForkedBooter.java:121)
Caused by: java.lang.ExceptionInInitializerError: Exception java.util.ServiceConfigurationError: co.elastic.logging.log4j2.MdcSerializerFactory: Provider co.elastic.logging.log4j2.TestMdcSerializerFactory could not be instantiated [in thread "main"]
	at java.base/java.util.ServiceLoader.fail(ServiceLoader.java:586)
	at java.base/java.util.ServiceLoader$ProviderImpl.newInstance(ServiceLoader.java:813)
	at java.base/java.util.ServiceLoader$ProviderImpl.get(ServiceLoader.java:729)
	at java.base/java.util.ServiceLoader$3.next(ServiceLoader.java:1403)
	at co.elastic.logging.log4j2.MdcSerializer$Resolver.resolveUserDefinedMdcSerializer(MdcSerializer.java:54)
	at co.elastic.logging.log4j2.MdcSerializer$Resolver.resolve(MdcSerializer.java:41)
	at co.elastic.logging.log4j2.EcsLayout.<clinit>(EcsLayout.java:65)
	at co.elastic.logging.log4j2.Log4j2EcsLayoutTest.configureLayout(Log4j2EcsLayoutTest.java:77)
	at co.elastic.logging.log4j2.Log4j2EcsLayoutTest.setUp(Log4j2EcsLayoutTest.java:67)
	at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
	at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:77)
	... 64 more