rgoers edited a comment on issue #312: make 
variableResolverPrefix/variableResolverSuffix/variableResolverEscape configable
URL: https://github.com/apache/logging-log4j2/pull/312#issuecomment-561956297
 
 
   I understand what you are trying to do. However, this fix is unnecessary. 
You can solve the problem with this configuration:
   ```  
       <Properties>
           <Property name="defaultPattern">%d{yyyyMMdd HH:mm:ss} %-5p %c{20}:%L 
- %m%n</Property>
       </Properties>
       <Appenders>
        <List name="list">
            <PatternLayout pattern="${logStdoutPattern:-${defaultPattern}}"/>
        </List>
       </Appenders>
   ```
   In addition, you can use a PatternSelector to determine which Pattern to 
use. See  the answer I gave for 
https://stackoverflow.com/questions/34446722/is-it-possible-for-using-different-pattern-layout-for-different-log-level-and-ou

----------------------------------------------------------------
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.
 
For queries about this service, please contact Infrastructure at:
[email protected]


With regards,
Apache Git Services

Reply via email to