You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@logging.apache.org by gg...@apache.org on 2012/10/12 13:56:42 UTC
svn commit: r1397524 -
/logging/log4j/log4j2/trunk/core/src/main/java/org/apache/logging/log4j/core/Layout.java
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();
-
}