Serializable
, Message
public class MessageFormatMessage extends Object implements Message
Constructor | Description |
---|---|
MessageFormatMessage(String messagePattern,
Object... parameters) |
Constructs a message.
|
MessageFormatMessage(Locale locale,
String messagePattern,
Object... parameters) |
Constructs a message.
|
Modifier and Type | Method | Description |
---|---|---|
boolean |
equals(Object o) |
|
protected String |
formatMessage(String msgPattern,
Object... args) |
|
String |
getFormat() |
Returns the message pattern.
|
String |
getFormattedMessage() |
Returns the formatted message.
|
Object[] |
getParameters() |
Returns the message parameters.
|
Throwable |
getThrowable() |
Return the throwable passed to the Message.
|
int |
hashCode() |
|
String |
toString() |
public MessageFormatMessage(Locale locale, String messagePattern, Object... parameters)
locale
- the locale for this message formatmessagePattern
- the pattern for this message formatparameters
- The objects to formatpublic String getFormattedMessage()
getFormattedMessage
in interface Message
public String getFormat()
public Object[] getParameters()
getParameters
in interface Message
public Throwable getThrowable()
getThrowable
in interface Message
Copyright © 1999-2018. All Rights Reserved.
Apache Logging, Apache Log4j, Log4j, Apache, the Apache feather logo, the Apache Logging project logo, and the Apache Log4j logo are trademarks of The Apache Software Foundation.