diff options
author | Claude Brisson <cbrisson@apache.org> | 2019-05-05 13:52:21 +0000 |
---|---|---|
committer | Claude Brisson <cbrisson@apache.org> | 2019-05-05 13:52:21 +0000 |
commit | c959ae3da1ad0445412bbe02b5339d1836ddf65f (patch) | |
tree | 879057a3674d0b1438a11aab76118905782ec40a /velocity-engine-core/src/main/java/org/apache/velocity/runtime/RuntimeConstants.java | |
parent | 8705542a685ae3eb4417a7ba2182a1892efcc6c8 (diff) | |
download | apache-velocity-engine-c959ae3da1ad0445412bbe02b5339d1836ddf65f.tar.gz |
[engine] Implement template location tracking with slf4j MDC tags; disabled by default
git-svn-id: https://svn.apache.org/repos/asf/velocity/engine/trunk@1858687 13f79535-47bb-0310-9956-ffa450edef68
Diffstat (limited to 'velocity-engine-core/src/main/java/org/apache/velocity/runtime/RuntimeConstants.java')
-rw-r--r-- | velocity-engine-core/src/main/java/org/apache/velocity/runtime/RuntimeConstants.java | 11 |
1 files changed, 8 insertions, 3 deletions
diff --git a/velocity-engine-core/src/main/java/org/apache/velocity/runtime/RuntimeConstants.java b/velocity-engine-core/src/main/java/org/apache/velocity/runtime/RuntimeConstants.java index ed8ae1c3..27782632 100644 --- a/velocity-engine-core/src/main/java/org/apache/velocity/runtime/RuntimeConstants.java +++ b/velocity-engine-core/src/main/java/org/apache/velocity/runtime/RuntimeConstants.java @@ -57,9 +57,11 @@ public interface RuntimeConstants extends DeprecatedRuntimeConstants /** Logging of invalid method calls. */ String RUNTIME_LOG_METHOD_CALL_LOG_INVALID = "runtime.log.log_invalid_method_calls"; - /** Whether to use string interning. */ - String RUNTIME_STRING_INTERNING = "runtime.string_interning"; - + /** Whether to populate slf4j's MDC with location in template file + * @since 2.2 + */ + String RUNTIME_LOG_TRACK_LOCATION = "runtime.log.track_location"; + /* * ---------------------------------------------------------------------- * D I R E C T I V E C O N F I G U R A T I O N @@ -369,6 +371,9 @@ public interface RuntimeConstants extends DeprecatedRuntimeConstants * ---------------------------------------------------------------------- */ + /** Whether to use string interning. */ + String RUNTIME_STRING_INTERNING = "runtime.string_interning"; + /** Switch for the interpolation facility for string literals. */ String INTERPOLATE_STRINGLITERALS = "runtime.interpolate_string_literals"; |