wleese opened a new issue, #1202:
URL: https://github.com/apache/logging-log4j2/issues/1202

   Starting log4j2-2.18.0 the following configuration:
   
   ```
   Configuration:
     status: warn
   
     Appenders:
       Console:
         - name: STDOUT
           target: SYSTEM_OUT
           PatternLayout:
             Pattern: "%style{%d{yyyy-MM-dd HH:mm:ss.SSS}}{disableAnsi=false}"
   ```
   
   Throws an exception:
   
   ```
   2023-01-13 12:45:47,690 main WARN The style attribute disableAnsi=false is 
incorrect. java.lang.IllegalArgumentException: No enum constant 
org.apache.logging.log4j.core.pattern.AnsiEscape.DISABLEANSI=FALSE
        at java.base/java.lang.Enum.valueOf(Enum.java:274)
        at 
org.apache.logging.log4j.util.EnglishEnums.valueOf(EnglishEnums.java:67)
        at 
org.apache.logging.log4j.util.EnglishEnums.valueOf(EnglishEnums.java:50)
        at 
org.apache.logging.log4j.core.pattern.AnsiEscape.createSequence(AnsiEscape.java:486)
        at 
org.apache.logging.log4j.core.pattern.StyleConverter.newInstance(StyleConverter.java:96)
        at 
java.base/jdk.internal.reflect.DirectMethodHandleAccessor.invoke(DirectMethodHandleAccessor.java:104)
        at java.base/java.lang.reflect.Method.invoke(Method.java:578)
        at 
org.apache.logging.log4j.core.pattern.PatternParser.createConverter(PatternParser.java:590)
        at 
org.apache.logging.log4j.core.pattern.PatternParser.finalizeConverter(PatternParser.java:657)
        at 
org.apache.logging.log4j.core.pattern.PatternParser.parse(PatternParser.java:420)
        at 
org.apache.logging.log4j.core.pattern.PatternParser.parse(PatternParser.java:177)
        at 
org.apache.logging.log4j.core.layout.PatternLayout$SerializerBuilder.build(PatternLayout.java:473)
        at 
org.apache.logging.log4j.core.layout.PatternLayout.<init>(PatternLayout.java:139)
        at 
org.apache.logging.log4j.core.layout.PatternLayout.<init>(PatternLayout.java:60)
        at 
org.apache.logging.log4j.core.layout.PatternLayout$Builder.build(PatternLayout.java:766)
        at 
org.apache.logging.log4j.core.layout.PatternLayout$Builder.build(PatternLayout.java:626)
        at 
org.apache.logging.log4j.core.config.plugins.util.PluginBuilder.build(PluginBuilder.java:124)
        at 
org.apache.logging.log4j.core.config.AbstractConfiguration.createPluginObject(AbstractConfiguration.java:1133)
        at 
org.apache.logging.log4j.core.config.AbstractConfiguration.createConfiguration(AbstractConfiguration.java:1058)
        at 
org.apache.logging.log4j.core.config.AbstractConfiguration.createConfiguration(AbstractConfiguration.java:1050)
        at 
org.apache.logging.log4j.core.config.AbstractConfiguration.createConfiguration(AbstractConfiguration.java:1050)
        at 
org.apache.logging.log4j.core.config.AbstractConfiguration.doConfigure(AbstractConfiguration.java:659)
        at 
org.apache.logging.log4j.core.config.AbstractConfiguration.initialize(AbstractConfiguration.java:257)
        at 
org.apache.logging.log4j.core.config.AbstractConfiguration.start(AbstractConfiguration.java:303)
        at 
org.codehaus.groovy.vmplugin.v8.IndyInterface.fromCache(IndyInterface.java:318)
        at 
com.bol.logging.log4j2.config.DisableAnsiSpec.$spock_feature_0_0(DisableAnsiSpec.groovy:24)
        at 
java.base/jdk.internal.reflect.DirectMethodHandleAccessor.invoke(DirectMethodHandleAccessor.java:104)
        at java.base/java.lang.reflect.Method.invoke(Method.java:578)
        at 
org.spockframework.util.ReflectionUtil.invokeMethod(ReflectionUtil.java:187)
        at 
org.spockframework.runtime.model.MethodInfo.lambda$new$0(MethodInfo.java:49)
        at 
org.spockframework.runtime.model.MethodInfo.invoke(MethodInfo.java:156)
        at 
org.spockframework.runtime.PlatformSpecRunner.invokeRaw(PlatformSpecRunner.java:407)
        at 
org.spockframework.runtime.PlatformSpecRunner.invoke(PlatformSpecRunner.java:390)
        at 
org.spockframework.runtime.PlatformSpecRunner.runFeatureMethod(PlatformSpecRunner.java:324)
        at 
org.spockframework.runtime.IterationNode.execute(IterationNode.java:50)
        at 
org.spockframework.runtime.SimpleFeatureNode.execute(SimpleFeatureNode.java:58)
        at 
org.spockframework.runtime.SimpleFeatureNode.execute(SimpleFeatureNode.java:15)
        at 
org.junit.platform.engine.support.hierarchical.NodeTestTask.lambda$executeRecursively$6(NodeTestTask.java:151)
        at 
org.junit.platform.engine.support.hierarchical.ThrowableCollector.execute(ThrowableCollector.java:73)
        at 
org.junit.platform.engine.support.hierarchical.NodeTestTask.lambda$executeRecursively$8(NodeTestTask.java:141)
        at org.spockframework.runtime.SpockNode.sneakyInvoke(SpockNode.java:40)
        at 
org.spockframework.runtime.IterationNode.lambda$around$0(IterationNode.java:67)
        at 
org.spockframework.runtime.PlatformSpecRunner.lambda$createMethodInfoForDoRunIteration$5(PlatformSpecRunner.java:236)
        at 
org.spockframework.runtime.model.MethodInfo.invoke(MethodInfo.java:156)
        at 
org.spockframework.runtime.PlatformSpecRunner.invokeRaw(PlatformSpecRunner.java:407)
        at 
org.spockframework.runtime.PlatformSpecRunner.invoke(PlatformSpecRunner.java:390)
        at 
org.spockframework.runtime.PlatformSpecRunner.runIteration(PlatformSpecRunner.java:218)
        at 
org.spockframework.runtime.IterationNode.around(IterationNode.java:67)
        at 
org.spockframework.runtime.SimpleFeatureNode.lambda$around$0(SimpleFeatureNode.java:52)
        at org.spockframework.runtime.SpockNode.sneakyInvoke(SpockNode.java:40)
        at 
org.spockframework.runtime.FeatureNode.lambda$around$0(FeatureNode.java:41)
        at 
org.spockframework.runtime.PlatformSpecRunner.lambda$createMethodInfoForDoRunFeature$4(PlatformSpecRunner.java:199)
        at 
org.spockframework.runtime.model.MethodInfo.invoke(MethodInfo.java:156)
        at 
org.spockframework.runtime.PlatformSpecRunner.invokeRaw(PlatformSpecRunner.java:407)
        at 
org.spockframework.runtime.PlatformSpecRunner.invoke(PlatformSpecRunner.java:390)
        at 
org.spockframework.runtime.PlatformSpecRunner.runFeature(PlatformSpecRunner.java:192)
        at org.spockframework.runtime.FeatureNode.around(FeatureNode.java:41)
        at 
org.spockframework.runtime.SimpleFeatureNode.around(SimpleFeatureNode.java:52)
        at 
org.spockframework.runtime.SimpleFeatureNode.around(SimpleFeatureNode.java:15)
        at 
org.junit.platform.engine.support.hierarchical.NodeTestTask.lambda$executeRecursively$9(NodeTestTask.java:139)
        at 
org.junit.platform.engine.support.hierarchical.ThrowableCollector.execute(ThrowableCollector.java:73)
        at 
org.junit.platform.engine.support.hierarchical.NodeTestTask.executeRecursively(NodeTestTask.java:138)
        at 
org.junit.platform.engine.support.hierarchical.NodeTestTask.execute(NodeTestTask.java:95)
        at java.base/java.util.ArrayList.forEach(ArrayList.java:1511)
        at 
org.junit.platform.engine.support.hierarchical.SameThreadHierarchicalTestExecutorService.invokeAll(SameThreadHierarchicalTestExecutorService.java:41)
        at 
org.junit.platform.engine.support.hierarchical.NodeTestTask.lambda$executeRecursively$6(NodeTestTask.java:155)
        at 
org.junit.platform.engine.support.hierarchical.ThrowableCollector.execute(ThrowableCollector.java:73)
        at 
org.junit.platform.engine.support.hierarchical.NodeTestTask.lambda$executeRecursively$8(NodeTestTask.java:141)
        at org.spockframework.runtime.SpockNode.sneakyInvoke(SpockNode.java:40)
        at org.spockframework.runtime.SpecNode.lambda$around$0(SpecNode.java:63)
        at 
org.spockframework.runtime.PlatformSpecRunner.lambda$createMethodInfoForDoRunSpec$0(PlatformSpecRunner.java:61)
        at 
org.spockframework.runtime.model.MethodInfo.invoke(MethodInfo.java:156)
        at 
org.spockframework.runtime.PlatformSpecRunner.invokeRaw(PlatformSpecRunner.java:407)
        at 
org.spockframework.runtime.PlatformSpecRunner.invoke(PlatformSpecRunner.java:390)
        at 
org.spockframework.runtime.PlatformSpecRunner.runSpec(PlatformSpecRunner.java:55)
        at org.spockframework.runtime.SpecNode.around(SpecNode.java:63)
        at org.spockframework.runtime.SpecNode.around(SpecNode.java:11)
        at 
org.junit.platform.engine.support.hierarchical.NodeTestTask.lambda$executeRecursively$9(NodeTestTask.java:139)
        at 
org.junit.platform.engine.support.hierarchical.ThrowableCollector.execute(ThrowableCollector.java:73)
        at 
org.junit.platform.engine.support.hierarchical.NodeTestTask.executeRecursively(NodeTestTask.java:138)
        at 
org.junit.platform.engine.support.hierarchical.NodeTestTask.execute(NodeTestTask.java:95)
        at java.base/java.util.ArrayList.forEach(ArrayList.java:1511)
        at 
org.junit.platform.engine.support.hierarchical.SameThreadHierarchicalTestExecutorService.invokeAll(SameThreadHierarchicalTestExecutorService.java:41)
        at 
org.junit.platform.engine.support.hierarchical.NodeTestTask.lambda$executeRecursively$6(NodeTestTask.java:155)
        at 
org.junit.platform.engine.support.hierarchical.ThrowableCollector.execute(ThrowableCollector.java:73)
        at 
org.junit.platform.engine.support.hierarchical.NodeTestTask.lambda$executeRecursively$8(NodeTestTask.java:141)
        at 
org.junit.platform.engine.support.hierarchical.Node.around(Node.java:137)
        at 
org.junit.platform.engine.support.hierarchical.NodeTestTask.lambda$executeRecursively$9(NodeTestTask.java:139)
        at 
org.junit.platform.engine.support.hierarchical.ThrowableCollector.execute(ThrowableCollector.java:73)
        at 
org.junit.platform.engine.support.hierarchical.NodeTestTask.executeRecursively(NodeTestTask.java:138)
        at 
org.junit.platform.engine.support.hierarchical.NodeTestTask.execute(NodeTestTask.java:95)
        at 
org.junit.platform.engine.support.hierarchical.SameThreadHierarchicalTestExecutorService.submit(SameThreadHierarchicalTestExecutorService.java:35)
        at 
org.junit.platform.engine.support.hierarchical.HierarchicalTestExecutor.execute(HierarchicalTestExecutor.java:57)
        at 
org.junit.platform.engine.support.hierarchical.HierarchicalTestEngine.execute(HierarchicalTestEngine.java:54)
        at 
org.junit.platform.launcher.core.EngineExecutionOrchestrator.execute(EngineExecutionOrchestrator.java:147)
        at 
org.junit.platform.launcher.core.EngineExecutionOrchestrator.execute(EngineExecutionOrchestrator.java:127)
        at 
org.junit.platform.launcher.core.EngineExecutionOrchestrator.execute(EngineExecutionOrchestrator.java:90)
        at 
org.junit.platform.launcher.core.EngineExecutionOrchestrator.lambda$execute$0(EngineExecutionOrchestrator.java:55)
        at 
org.junit.platform.launcher.core.EngineExecutionOrchestrator.withInterceptedStreams(EngineExecutionOrchestrator.java:102)
        at 
org.junit.platform.launcher.core.EngineExecutionOrchestrator.execute(EngineExecutionOrchestrator.java:54)
        at 
org.junit.platform.launcher.core.DefaultLauncher.execute(DefaultLauncher.java:114)
        at 
org.junit.platform.launcher.core.DefaultLauncher.execute(DefaultLauncher.java:86)
        at 
org.junit.platform.launcher.core.DefaultLauncherSession$DelegatingLauncher.execute(DefaultLauncherSession.java:86)
        at 
org.junit.platform.launcher.core.SessionPerRequestLauncher.execute(SessionPerRequestLauncher.java:53)
        at 
com.intellij.junit5.JUnit5IdeaTestRunner.startRunnerWithArgs(JUnit5IdeaTestRunner.java:57)
        at 
com.intellij.rt.junit.IdeaTestRunner$Repeater$1.execute(IdeaTestRunner.java:38)
        at 
com.intellij.rt.execution.junit.TestsRepeater.repeat(TestsRepeater.java:11)
        at 
com.intellij.rt.junit.IdeaTestRunner$Repeater.startRunnerWithArgs(IdeaTestRunner.java:35)
        at 
com.intellij.rt.junit.JUnitStarter.prepareStreamsAndStart(JUnitStarter.java:235)
        at com.intellij.rt.junit.JUnitStarter.main(JUnitStarter.java:54)
   ```


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]

Reply via email to