logging-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From mattsic...@apache.org
Subject svn commit: r1601536 - in /logging/log4j/log4j2/trunk/log4j-core/src/main/java/org/apache/logging/log4j/core/config/plugins: PluginAttribute.java PluginBuilderAttribute.java
Date Tue, 10 Jun 2014 00:55:33 GMT
Author: mattsicker
Date: Tue Jun 10 00:55:33 2014
New Revision: 1601536

URL: http://svn.apache.org/r1601536
Log:
Add sensitive() attribute to annotations.

Modified:
    logging/log4j/log4j2/trunk/log4j-core/src/main/java/org/apache/logging/log4j/core/config/plugins/PluginAttribute.java
    logging/log4j/log4j2/trunk/log4j-core/src/main/java/org/apache/logging/log4j/core/config/plugins/PluginBuilderAttribute.java

Modified: logging/log4j/log4j2/trunk/log4j-core/src/main/java/org/apache/logging/log4j/core/config/plugins/PluginAttribute.java
URL: http://svn.apache.org/viewvc/logging/log4j/log4j2/trunk/log4j-core/src/main/java/org/apache/logging/log4j/core/config/plugins/PluginAttribute.java?rev=1601536&r1=1601535&r2=1601536&view=diff
==============================================================================
--- logging/log4j/log4j2/trunk/log4j-core/src/main/java/org/apache/logging/log4j/core/config/plugins/PluginAttribute.java
(original)
+++ logging/log4j/log4j2/trunk/log4j-core/src/main/java/org/apache/logging/log4j/core/config/plugins/PluginAttribute.java
Tue Jun 10 00:55:33 2014
@@ -94,4 +94,10 @@ public @interface PluginAttribute {
      */
     String value();
 
+    /**
+     * Indicates that this attribute is a sensitive one that shouldn't be logged directly.
Such attributes will instead
+     * be output as a hashed value.
+     */
+    boolean sensitive() default false;
+
 }

Modified: logging/log4j/log4j2/trunk/log4j-core/src/main/java/org/apache/logging/log4j/core/config/plugins/PluginBuilderAttribute.java
URL: http://svn.apache.org/viewvc/logging/log4j/log4j2/trunk/log4j-core/src/main/java/org/apache/logging/log4j/core/config/plugins/PluginBuilderAttribute.java?rev=1601536&r1=1601535&r2=1601536&view=diff
==============================================================================
--- logging/log4j/log4j2/trunk/log4j-core/src/main/java/org/apache/logging/log4j/core/config/plugins/PluginBuilderAttribute.java
(original)
+++ logging/log4j/log4j2/trunk/log4j-core/src/main/java/org/apache/logging/log4j/core/config/plugins/PluginBuilderAttribute.java
Tue Jun 10 00:55:33 2014
@@ -40,4 +40,10 @@ public @interface PluginBuilderAttribute
      * of the field (or member) this annotation is attached to will be used.
      */
     String value() default Strings.EMPTY;
+
+    /**
+     * Indicates that this attribute is a sensitive one that shouldn't be logged directly.
Such attributes will instead
+     * be output as a hashed value.
+     */
+    boolean sensitive() default false;
 }



Mime
View raw message