logging-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From ggreg...@apache.org
Subject svn commit: r1397524 - /logging/log4j/log4j2/trunk/core/src/main/java/org/apache/logging/log4j/core/Layout.java
Date Fri, 12 Oct 2012 11:56:42 GMT
Author: ggregory
Date: Fri Oct 12 11:56:42 2012
New Revision: 1397524

URL: http://svn.apache.org/viewvc?rev=1397524&view=rev
Log:
Sort members.

Modified:
    logging/log4j/log4j2/trunk/core/src/main/java/org/apache/logging/log4j/core/Layout.java

Modified: logging/log4j/log4j2/trunk/core/src/main/java/org/apache/logging/log4j/core/Layout.java
URL: http://svn.apache.org/viewvc/logging/log4j/log4j2/trunk/core/src/main/java/org/apache/logging/log4j/core/Layout.java?rev=1397524&r1=1397523&r2=1397524&view=diff
==============================================================================
--- logging/log4j/log4j2/trunk/core/src/main/java/org/apache/logging/log4j/core/Layout.java
(original)
+++ logging/log4j/log4j2/trunk/core/src/main/java/org/apache/logging/log4j/core/Layout.java
Fri Oct 12 11:56:42 2012
@@ -27,6 +27,22 @@ import java.io.Serializable;
  */
 public interface Layout<T extends Serializable> {
     /**
+     * Returns the format for the layout format.
+     * @return The footer.
+     * @doubt the concept of header and footer is not universal, should not be on the base
interface.
+     * (RG) I agree with this.
+     */
+    byte[] getFooter();
+
+    /**
+     * Returns the header for the layout format.
+     * @return The header.
+     * @doubt the concept of header and footer is not universal, should not be on the base
interface.
+     * (RG) I agree with this.
+     */
+    byte[] getHeader();
+
+    /**
      * Formats the event suitable for display.
      *
      * @param event The Logging Event.
@@ -45,21 +61,5 @@ public interface Layout<T extends Serial
      */
     T toSerializable(LogEvent event);
 
-    /**
-     * Returns the header for the layout format.
-     * @return The header.
-     * @doubt the concept of header and footer is not universal, should not be on the base
interface.
-     * (RG) I agree with this.
-     */
-    byte[] getHeader();
-
-    /**
-     * Returns the format for the layout format.
-     * @return The footer.
-     * @doubt the concept of header and footer is not universal, should not be on the base
interface.
-     * (RG) I agree with this.
-     */
-    byte[] getFooter();
-
 
 }



Mime
View raw message