diff options
author | Claude Brisson <cbrisson@apache.org> | 2019-03-15 13:37:25 +0000 |
---|---|---|
committer | Claude Brisson <cbrisson@apache.org> | 2019-03-15 13:37:25 +0000 |
commit | 91e7996b1034addc75f6138afed663e90880e351 (patch) | |
tree | 8d482d80888f19f7fa423ef740e2a52ab938844c /velocity-engine-core/src/main/java/org/apache | |
parent | 8a000c6d76387430ff5ddbb61cb6bbd2ab2c45ba (diff) | |
download | apache-velocity-engine-91e7996b1034addc75f6138afed663e90880e351.tar.gz |
[engine] Property keys deprecation logs should reside in the default org.apache.velocity logging namespace
git-svn-id: https://svn.apache.org/repos/asf/velocity/engine/trunk@1855591 13f79535-47bb-0310-9956-ffa450edef68
Diffstat (limited to 'velocity-engine-core/src/main/java/org/apache')
-rw-r--r-- | velocity-engine-core/src/main/java/org/apache/velocity/util/DeprecationAwareExtProperties.java | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/velocity-engine-core/src/main/java/org/apache/velocity/util/DeprecationAwareExtProperties.java b/velocity-engine-core/src/main/java/org/apache/velocity/util/DeprecationAwareExtProperties.java index 24b9584b..49c15a9e 100644 --- a/velocity-engine-core/src/main/java/org/apache/velocity/util/DeprecationAwareExtProperties.java +++ b/velocity-engine-core/src/main/java/org/apache/velocity/util/DeprecationAwareExtProperties.java @@ -43,9 +43,12 @@ import java.util.Set; public class DeprecationAwareExtProperties extends Hashtable<String, Object> { /** - * Logger used to log the use of deprecated properties names + * <p>Logger used to log the use of deprecated properties names.</p> + * <p>Since at the time Velocity properties are set Velocity is not yet initialized, + * this logger namespace can only be a child of the default logger name: <code>org.apache.velocity.deprecation</code>.</p> + * <p>It won't honor the <code>runtime.log.instance</code> or <code>runtime.log.name</code> settings.</p> */ - protected static Logger logger = LoggerFactory.getLogger("deprecation"); + protected static Logger logger = LoggerFactory.getLogger(RuntimeConstants.DEFAULT_RUNTIME_LOG_NAME + ".deprecation"); /** * Emit a warning in the log for adeprecated property name |