[ https://issues.apache.org/jira/browse/LOG4J2-2991?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17259397#comment-17259397 ]
Matt Sicker edited comment on LOG4J2-2991 at 1/6/21, 4:09 AM: -------------------------------------------------------------- I was going to say the property naming thing normalizes things fairly fine being that it mostly exists to strip away any log4j-related prefix to the property name before tokenizing it. The name still matters after the prefix, though; that missing "config" appears to be the problem. was (Author: jvz): I was going to say the property naming thing normalizes things fairly fine being that it mostly exists to strip away any log4j-related prefix to the property name being looked up. The name still matters after the prefix, though; that missing "config" appears to be the problem. > Issue with log4j2.asyncLoggerWaitStrategy > ----------------------------------------- > > Key: LOG4J2-2991 > URL: https://issues.apache.org/jira/browse/LOG4J2-2991 > Project: Log4j 2 > Issue Type: Bug > Environment: Log4J 2.14.0 > > OpenJDK 64-Bit Server VM; 11.0.5; 11.0.5+10-LTS; mixed mode > os.arch=amd64 > os.name.yjp=Windows 10 > os.name=Windows 10 > os.version.yjp=10.0.17134 > os.version=10.0 > Reporter: Daniel Marques > Priority: Major > > The documentation > ([https://logging.apache.org/log4j/2.x/manual/async.html#SysPropsAllAsync)] > states that the property "log4j2.asyncLoggerWaitStrategy" can be used to > control the waiting strategy used by the asynchronous logging system. > However, setting/changing the property doesn't seem to have the desired > effect. > According to the documentation > ([https://logging.apache.org/log4j/2.x/manual/configuration.html#SystemProperties)] > "beginning in Log4j 2.10, all system property names have been normalized to > follow a consistent naming scheme". While "log4j2.asyncLoggerWaitStrategy" > appears to be the normalized/consistent scheme, the system doesn't appear to > recognize that. > The code > ([https://github.com/apache/logging-log4j2/blob/d9e01a981b860aeb8834eac3eed201c686884b7a/log4j-core/src/main/java/org/apache/logging/log4j/core/async/AsyncLoggerConfigDisruptor.java#L218)] > refers to a property named "AsyncLoggerConfig.WaitStrategy". Setting that > appears to have the desired effect. > > -- This message was sent by Atlassian Jira (v8.3.4#803005)