ch.qos.logback.contrib.jackson
Class JacksonJsonFormatter
java.lang.Object
ch.qos.logback.contrib.jackson.JacksonJsonFormatter
- All Implemented Interfaces:
- JsonFormatter
public class JacksonJsonFormatter
- extends Object
- implements JsonFormatter
Jackson-specific implementation of the JsonFormatter.
- Since:
- 0.1
- Author:
- Les Hazlewood
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
BUFFER_SIZE
public static final int BUFFER_SIZE
- See Also:
- Constant Field Values
JacksonJsonFormatter
public JacksonJsonFormatter()
toJsonString
public String toJsonString(Map m)
throws IOException
- Specified by:
toJsonString in interface JsonFormatter
- Throws:
IOException
getObjectMapper
public com.fasterxml.jackson.databind.ObjectMapper getObjectMapper()
setObjectMapper
public void setObjectMapper(com.fasterxml.jackson.databind.ObjectMapper objectMapper)
isPrettyPrint
public boolean isPrettyPrint()
setPrettyPrint
public void setPrettyPrint(boolean prettyPrint)
Copyright © 2012-2013. All Rights Reserved.