Class AdvancedLogMessageAdapter

  • All Implemented Interfaces:
    java.io.Serializable, org.apache.logging.log4j.message.Message, org.apache.logging.log4j.util.StringBuilderFormattable

    public class AdvancedLogMessageAdapter
    extends java.lang.Object
    implements org.apache.logging.log4j.message.Message, org.apache.logging.log4j.util.StringBuilderFormattable
    See Also:
    Serialized Form
    • Field Summary

      Fields 
      Modifier and Type Field Description
      private static java.lang.Object[] EMPTY  
      private java.util.function.Consumer<java.lang.StringBuilder> logMessageBuilder  
      private static long serialVersionUID  
    • Constructor Summary

      Constructors 
      Constructor Description
      AdvancedLogMessageAdapter​(java.util.function.Consumer<java.lang.StringBuilder> logMessageBuilder)  
    • Field Detail

      • EMPTY

        private static final java.lang.Object[] EMPTY
      • logMessageBuilder

        private final java.util.function.Consumer<java.lang.StringBuilder> logMessageBuilder
    • Constructor Detail

      • AdvancedLogMessageAdapter

        public AdvancedLogMessageAdapter​(java.util.function.Consumer<java.lang.StringBuilder> logMessageBuilder)
    • Method Detail

      • getFormattedMessage

        public java.lang.String getFormattedMessage()
        Specified by:
        getFormattedMessage in interface org.apache.logging.log4j.message.Message
      • getFormat

        public java.lang.String getFormat()
        Specified by:
        getFormat in interface org.apache.logging.log4j.message.Message
      • getParameters

        public java.lang.Object[] getParameters()
        Specified by:
        getParameters in interface org.apache.logging.log4j.message.Message
      • getThrowable

        public java.lang.Throwable getThrowable()
        Specified by:
        getThrowable in interface org.apache.logging.log4j.message.Message
      • formatTo

        public void formatTo​(java.lang.StringBuilder buffer)
        Specified by:
        formatTo in interface org.apache.logging.log4j.util.StringBuilderFormattable