Package org.apache.logging.log4j.message
Class ObjectArrayMessage
java.lang.Object
org.apache.logging.log4j.message.ObjectArrayMessage
- All Implemented Interfaces:
Serializable
,Message
Handles messages that contain an Object[].
Created for use with the CSV layout. For example:
logger.debug(new ObjectArrayMessage(1, 2, "Bob"));
- Since:
- 2.4
- See Also:
-
Constructor Details
-
ObjectArrayMessage
Creates the ObjectMessage.- Parameters:
obj
- The Object to format.
-
-
Method Details
-
equals
-
getFormat
Returns the object formatted using its toString method. -
getFormattedMessage
Returns the formatted object message.- Specified by:
getFormattedMessage
in interfaceMessage
- Returns:
- the formatted object message.
-
getParameters
Returns the object as if it were a parameter.- Specified by:
getParameters
in interfaceMessage
- Returns:
- The object.
-
getThrowable
Returns null.- Specified by:
getThrowable
in interfaceMessage
- Returns:
- null.
-
hashCode
public int hashCode() -
toString
-