Package org.apache.logging.log4j.message
Class MessageFormatMessage
java.lang.Object
org.apache.logging.log4j.message.MessageFormatMessage
- All Implemented Interfaces:
Serializable,Message
Handles messages that consist of a format string conforming to java.text.MessageFormat.
- See Also:
-
Constructor Summary
ConstructorsConstructorDescriptionMessageFormatMessage(String messagePattern, Object... parameters) Constructs a message.MessageFormatMessage(Locale locale, String messagePattern, Object... parameters) Constructs a message. -
Method Summary
-
Constructor Details
-
MessageFormatMessage
Constructs a message.- Parameters:
locale- the locale for this message formatmessagePattern- the pattern for this message formatparameters- The objects to format- Since:
- 2.6
-
MessageFormatMessage
Constructs a message.- Parameters:
messagePattern- the pattern for this message formatparameters- The objects to format
-
-
Method Details
-
getFormattedMessage
Returns the formatted message.- Specified by:
getFormattedMessagein interfaceMessage- Returns:
- the formatted message.
-
getFormat
Returns the message pattern. -
getParameters
Returns the message parameters.- Specified by:
getParametersin interfaceMessage- Returns:
- the message parameters.
-
formatMessage
-
equals
-
hashCode
public int hashCode() -
toString
-
getThrowable
Return the throwable passed to the Message.- Specified by:
getThrowablein interfaceMessage- Returns:
- the Throwable.
-