Serializable
, Message
public final class ObjectArrayMessage extends Object implements Message
Created for use with the CSV layout. For example:
logger.debug(new ObjectArrayMessage(1, 2, "Bob"));
Constructor | Description |
---|---|
ObjectArrayMessage(Object... obj) |
Creates the ObjectMessage.
|
Modifier and Type | Method | Description |
---|---|---|
boolean |
equals(Object o) |
|
String |
getFormat() |
Returns the object formatted using its toString method.
|
String |
getFormattedMessage() |
Returns the formatted object message.
|
Object[] |
getParameters() |
Returns the object as if it were a parameter.
|
Throwable |
getThrowable() |
Returns null.
|
int |
hashCode() |
|
String |
toString() |
public ObjectArrayMessage(Object... obj)
obj
- The Object to format.public String getFormat()
public String getFormattedMessage()
getFormattedMessage
in interface Message
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.