Class MessageFormatMessage
java.lang.Object
org.apache.logging.log4j.message.MessageFormatMessage
- All Implemented Interfaces:
Serializable, Message
-
Field Summary
Fields -
Constructor Summary
ConstructorsConstructorDescriptionMessageFormatMessage(String messagePattern, Object... parameters) Constructs a message.MessageFormatMessage(Locale locale, String messagePattern, Object... parameters) Constructs a message. -
Method Summary
Modifier and TypeMethodDescriptionbooleanprotected StringformatMessage(String msgPattern, Object... args) Returns the message pattern.Returns the formatted message.Object[]Returns the message parameters.Return the throwable passed to the Message.inthashCode()private voidtoString()private void
-
Field Details
-
LOGGER
-
serialVersionUID
private static final long serialVersionUID- See Also:
-
HASHVAL
private static final int HASHVAL- See Also:
-
messagePattern
-
parameters
-
serializedParameters
-
formattedMessage
-
throwable
-
locale
-
-
Constructor Details
-
MessageFormatMessage
-
MessageFormatMessage
-
-
Method Details
-
getFormattedMessage
Returns the formatted message.- Specified by:
getFormattedMessagein interfaceMessage- Returns:
- the formatted message.
-
getFormat
-
getParameters
Returns the message parameters.- Specified by:
getParametersin interfaceMessage- Returns:
- the message parameters.
-
formatMessage
-
equals
-
hashCode
-
toString
-
writeObject
- Throws:
IOException
-
readObject
- Throws:
IOException
-
getThrowable
Return the throwable passed to the Message.- Specified by:
getThrowablein interfaceMessage- Returns:
- the Throwable.
-