feat: support customization for MDC serializer #141
160 passed, 17 failed and 0 skipped
✔️ 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
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
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
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