public class JsonMessage extends Object implements org.apache.logging.log4j.message.Message
Modifier and Type | Field and Description |
---|---|
private static com.fasterxml.jackson.databind.ObjectMapper |
MAPPER
MAPPER.
|
private Object |
object
object to map.
|
private static long |
serialVersionUID
version.
|
Constructor and Description |
---|
JsonMessage(Object object)
Constructs a JsonMessage.
|
Modifier and Type | Method and Description |
---|---|
String |
getFormat() |
String |
getFormattedMessage() |
Object[] |
getParameters() |
Throwable |
getThrowable() |
private static final long serialVersionUID
private static final com.fasterxml.jackson.databind.ObjectMapper MAPPER
private final Object object
public JsonMessage(Object object)
object
- the Object to serialize.public String getFormattedMessage()
getFormattedMessage
in interface org.apache.logging.log4j.message.Message
public String getFormat()
getFormat
in interface org.apache.logging.log4j.message.Message
public Object[] getParameters()
getParameters
in interface org.apache.logging.log4j.message.Message
public Throwable getThrowable()
getThrowable
in interface org.apache.logging.log4j.message.Message
Copyright © 2017–2020 CNES. All rights reserved.