logging-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From rgo...@apache.org
Subject svn commit: r1190334 - /logging/log4j/branches/BRANCH_2_0_EXPERIMENTAL/rgoers/log4j2-api/src/main/java/org/apache/logging/log4j/message/StructuredDataMessage.java
Date Fri, 28 Oct 2011 14:05:24 GMT
Author: rgoers
Date: Fri Oct 28 14:05:24 2011
New Revision: 1190334

URL: http://svn.apache.org/viewvc?rev=1190334&view=rev
Log:
Add constructor

Modified:
    logging/log4j/branches/BRANCH_2_0_EXPERIMENTAL/rgoers/log4j2-api/src/main/java/org/apache/logging/log4j/message/StructuredDataMessage.java

Modified: logging/log4j/branches/BRANCH_2_0_EXPERIMENTAL/rgoers/log4j2-api/src/main/java/org/apache/logging/log4j/message/StructuredDataMessage.java
URL: http://svn.apache.org/viewvc/logging/log4j/branches/BRANCH_2_0_EXPERIMENTAL/rgoers/log4j2-api/src/main/java/org/apache/logging/log4j/message/StructuredDataMessage.java?rev=1190334&r1=1190333&r2=1190334&view=diff
==============================================================================
--- logging/log4j/branches/BRANCH_2_0_EXPERIMENTAL/rgoers/log4j2-api/src/main/java/org/apache/logging/log4j/message/StructuredDataMessage.java
(original)
+++ logging/log4j/branches/BRANCH_2_0_EXPERIMENTAL/rgoers/log4j2-api/src/main/java/org/apache/logging/log4j/message/StructuredDataMessage.java
Fri Oct 28 14:05:24 2011
@@ -49,7 +49,13 @@ public class StructuredDataMessage exten
         this.message = msg;
         this.type = type;
     }
-
+    /**
+     * Constructor based on a String id.
+     * @param id The String id.
+     * @param msg The message.
+     * @param type The message type.
+     * @param data The StructuredData map.
+     */
     public StructuredDataMessage(final String id, final String msg, final String type,
                                  Map<String, String> data) {
         super(data);
@@ -71,6 +77,22 @@ public class StructuredDataMessage exten
     }
 
     /**
+     * Constructor based on a StructuredDataId.
+     * @param id The StructuredDataId.
+     * @param msg The message.
+     * @param type The message type.
+     * @param data The StructuredData map.
+     */
+    public StructuredDataMessage(final StructuredDataId id, final String msg, final String
type,
+                                 Map<String, String> data) {
+        super(data);
+        this.id = id;
+        this.message = msg;
+        this.type = type;
+    }
+
+
+    /**
      * Constructor based on a StructuredDataMessage.
      * @param msg The StructuredDataMessage.
      * @param map The StructuredData map.



Mime
View raw message