Author: cbrisson
Date: Fri Mar 15 13:37:25 2019
New Revision: 1855591
URL: http://svn.apache.org/viewvc?rev=1855591&view=rev
Log:
[engine] Property keys deprecation logs should reside in the default
org.apache.velocity logging namespace
Modified:
velocity/engine/trunk/velocity-engine-core/src/main/java/org/apache/velocity/util/DeprecationAwareExtProperties.java
Modified:
velocity/engine/trunk/velocity-engine-core/src/main/java/org/apache/velocity/util/DeprecationAwareExtProperties.java
URL:
http://svn.apache.org/viewvc/velocity/engine/trunk/velocity-engine-core/src/main/java/org/apache/velocity/util/DeprecationAwareExtProperties.java?rev=1855591&r1=1855590&r2=1855591&view=diff
==============================================================================
---
velocity/engine/trunk/velocity-engine-core/src/main/java/org/apache/velocity/util/DeprecationAwareExtProperties.java
(original)
+++
velocity/engine/trunk/velocity-engine-core/src/main/java/org/apache/velocity/util/DeprecationAwareExtProperties.java
Fri Mar 15 13:37:25 2019
@@ -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