public class GsonFormatter
extends java.lang.Object
implements ch.qos.logback.contrib.json.JsonFormatter
JsonFormatter.| Modifier and Type | Field and Description |
|---|---|
static int |
BUFFER_SIZE |
| Constructor and Description |
|---|
GsonFormatter() |
| Modifier and Type | Method and Description |
|---|---|
com.google.gson.Gson |
getGson() |
boolean |
isPrettyPrint() |
void |
setGson(com.google.gson.Gson gson) |
void |
setPrettyPrint(boolean prettyPrint) |
java.lang.String |
toJsonString(java.util.Map logData) |
public static final int BUFFER_SIZE
public java.lang.String toJsonString(java.util.Map logData)
throws java.io.IOException
toJsonString in interface ch.qos.logback.contrib.json.JsonFormatterjava.io.IOExceptionpublic com.google.gson.Gson getGson()
public void setGson(com.google.gson.Gson gson)
public boolean isPrettyPrint()
public void setPrettyPrint(boolean prettyPrint)