This is an automated email from the ASF dual-hosted git repository.

vy pushed a commit to branch scheduled-for-deletion/LOG4J2-930
in repository https://gitbox.apache.org/repos/asf/logging-log4j2.git

commit ad38f0d3ee96d7968d8f283f745d08c63af6a94c
Author: rpopma <[email protected]>
AuthorDate: Mon Jan 12 17:36:11 2015 +0900

    API change from StringBuilder to Buffer; FormattingInfo is now internal
    to PatternConverter
---
 .../logging/log4j/core/pattern/PatternConverter.java | 20 ++++++++++++++------
 1 file changed, 14 insertions(+), 6 deletions(-)

diff --git 
a/log4j-core/src/main/java/org/apache/logging/log4j/core/pattern/PatternConverter.java
 
b/log4j-core/src/main/java/org/apache/logging/log4j/core/pattern/PatternConverter.java
index 01b072f6f8..32bab58245 100644
--- 
a/log4j-core/src/main/java/org/apache/logging/log4j/core/pattern/PatternConverter.java
+++ 
b/log4j-core/src/main/java/org/apache/logging/log4j/core/pattern/PatternConverter.java
@@ -29,25 +29,33 @@ public interface PatternConverter {
     String CATEGORY = "Converter";
 
     /**
-     * Formats an object into a string buffer.
+     * Formats an object into the specified buffer.
      *
-     * @param obj        event to format, may not be null.
-     * @param toAppendTo string buffer to which the formatted event will be 
appended.  May not be null.
+     * @param obj event to format, may not be null.
+     * @param toAppendTo string buffer to which the formatted event will be 
appended. May not be null.
      */
-    void format(Object obj, StringBuilder toAppendTo);
+    void format(Object obj, Buffer toAppendTo);
 
     /**
      * Returns the name of the converter.
+     * 
      * @return The name of the converter.
      */
     String getName();
 
     /**
-     * This method returns the CSS style class that should be applied to
-     * the LoggingEvent passed as parameter, which can be null.
+     * This method returns the CSS style class that should be applied to the 
LoggingEvent passed as parameter, which can
+     * be null.
      *
      * @param e null values are accepted
      * @return the name of the conversion pattern
      */
     String getStyleClass(Object e);
+
+    /**
+     * Returns the {@code FormattingInfo} responsible for alignment and output 
width.
+     * 
+     * @return the {@code FormattingInfo} for this converter or {@code null} 
if not applicable
+     */
+    FormattingInfo getFormattingInfo();
 }

Reply via email to