• Andy Wilkinson's avatar
    Consume level and dateformat patterns as system props in Log4j config · f6492cd0
    Andy Wilkinson authored
    Previously LOG_LEVEL_PATTERN and LOG_DATEFORMAT_PATTERN were not
    consumed as system properties in log4j2.xml and log4j2-file.xml. As a
    result, the logging.pattern.level and logging.pattern.dateformat
    configuration properties, which are translated into the
    LOG_LEVEL_PATTERN and LOG_DATEFORMAT_PATTERN system properties
    respectively had no effect.
    
    This commit updates the log4j2.xml and log4j2-file.xml config files to
    consume LOG_LEVEL_PATTERN and LOG_DATEFORMAT_PATTERN as system
    properties. When the system property is not set, the configuation falls
    back to the default values specified in the config files. Tests for
    both log4j2.xml and log4j2-file.xml to verify the behaviour have also
    bean added.
    
    Fixes gh-22983
    f6492cd0
Name
Last commit
Last update
.bomr Loading commit data...
.github Loading commit data...
.mvn Loading commit data...
ci Loading commit data...
eclipse Loading commit data...
git/hooks Loading commit data...
idea Loading commit data...
spring-boot-project Loading commit data...
spring-boot-tests Loading commit data...
src/checkstyle Loading commit data...
.editorconfig Loading commit data...
.gitignore Loading commit data...
.settings-template.xml Loading commit data...
CODE_OF_CONDUCT.adoc Loading commit data...
CONTRIBUTING.adoc Loading commit data...
LICENSE.txt Loading commit data...
README.adoc Loading commit data...
SUPPORT.adoc Loading commit data...
mvnw Loading commit data...
mvnw.cmd Loading commit data...
pom.xml Loading commit data...