Interface StringBuilderFormattable

All Known Subinterfaces:
MultiFormatStringBuilderFormattable, ReusableMessage
All Known Implementing Classes:
DefaultThreadContextStack, MapMessage, MarkerManager.Log4jMarker, MutableThreadContextStack, ObjectMessage, ParameterizedMessage, ReusableObjectMessage, ReusableParameterizedMessage, ReusableSimpleMessage, SimpleMessage, StringMapMessage, StructuredDataCollectionMessage, StructuredDataId, StructuredDataMessage, ThreadDumpMessage, Timer

public interface StringBuilderFormattable
Objects that implement this interface can be converted to text, ideally without allocating temporary objects.
Since:
2.6
  • Method Summary

    Modifier and Type
    Method
    Description
    void
    Writes a text representation of this object into the specified StringBuilder, ideally without allocating temporary objects.
  • Method Details

    • formatTo

      void formatTo(StringBuilder buffer)
      Writes a text representation of this object into the specified StringBuilder, ideally without allocating temporary objects.
      Parameters:
      buffer - the StringBuilder to write into