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