Class MessageFormatMessage

java.lang.Object
org.apache.logging.log4j.message.MessageFormatMessage
All Implemented Interfaces:
Serializable, Message

public class MessageFormatMessage extends Object implements Message
Handles messages that consist of a format string conforming to java.text.MessageFormat.
See Also:
  • Field Details

    • LOGGER

      private static final Logger LOGGER
    • serialVersionUID

      private static final long serialVersionUID
      See Also:
    • HASHVAL

      private static final int HASHVAL
      See Also:
    • messagePattern

      private String messagePattern
    • parameters

      private transient Object[] parameters
    • serializedParameters

      private String[] serializedParameters
    • formattedMessage

      private transient String formattedMessage
    • throwable

      private transient Throwable throwable
    • locale

      private final Locale locale
  • Constructor Details

    • MessageFormatMessage

      public MessageFormatMessage(Locale locale, String messagePattern, Object... parameters)
      Constructs a message.
      Parameters:
      locale - the locale for this message format
      messagePattern - the pattern for this message format
      parameters - The objects to format
      Since:
      2.6
    • MessageFormatMessage

      public MessageFormatMessage(String messagePattern, Object... parameters)
      Constructs a message.
      Parameters:
      messagePattern - the pattern for this message format
      parameters - The objects to format
  • Method Details